Repository navigation
Closed
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Steps to reproduce
git clone https://github.com/flutter/samples.git- Follow the instructions to run the
full_screensample here
I also tried creating a fresh module and new iOS App, same results
(below reproduction are from recreated app)
Result:
On simulator (iOS 14.4)
iOS app launches & freeze when opening Flutter module
Screen.Recording.2021-08-26.at.18.43.09.mov
logs
2021-08-26 18:41:50.367200+0300 triage[72092:518261] Failed to find assets path for "Frameworks/App.framework/flutter_assets"
2021-08-26 18:41:50.367552+0300 triage[72092:518261] Metal API Validation Enabled
2021-08-26 18:41:50.401158+0300 triage[72092:518416] [VERBOSE-2:engine.cc(194)] Engine run configuration was invalid.
2021-08-26 18:41:50.401346+0300 triage[72092:518416] [VERBOSE-2:shell.cc(571)] Could not launch engine with configuration.
2021-08-26 18:41:50.530843+0300 triage[72092:518432] flutter: Observatory listening on http://127.0.0.1:53386/4PZvPGfvzgQ=/On a physical (iOS 15 & iOS 12.5)
App crash at launch, device freezes (have to stop Xcode run process to able to use the device again)
vid-20210826-184709_PVvGYyBt_Qprk.mp4
logs
dyld`__abort_with_payload:
0x1008c4190 <+0>: mov x16, #0x209
0x1008c4194 <+4>: svc #0x80
-> 0x1008c4198 <+8>: b.lo 0x1008c41b8 ; <+40>
0x1008c419c <+12>: pacibsp
0x1008c41a0 <+16>: stp x29, x30, [sp, #-0x10]!
0x1008c41a4 <+20>: mov x29, sp
0x1008c41a8 <+24>: bl 0x100885e80 ; cerror_nocancel
0x1008c41ac <+28>: mov sp, x29
0x1008c41b0 <+32>: ldp x29, x30, [sp], #0x10
0x1008c41b4 <+36>: retab
0x1008c41b8 <+40>: ret dyld[3906]: Library not loaded: @rpath/App.framework/App
Referenced from: /private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/triage
Reason: tried: '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/System/Library/Frameworks/App.framework/App' (no such file)
Library not loaded: @rpath/App.framework/App
Referenced from: /private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/triage
Reason: tried: '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/private/var/containers/Bundle/Application/AC275097-9D6F-47A6-BEB5-5E40B5F0DE1F/triage.app/Frameworks/App.framework/App' (no such file), '/System/Library
(lldb) prebuilt examples works fine
stable |
master |
|---|---|
| ❗️ | ❗️ |
Check flutter doctor -v outputs for each channel below
flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5304g darwin-x64, locale en-GB)
• Flutter version 2.2.3 at /Users/tahatesser/Code/flutter_stable
• Framework revision f4abaa0735 (8 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/tahatesser/Code/SDK
• Platform android-31, build-tools 30.0.3
• ANDROID_HOME = /Users/tahatesser/Code/SDK
• Java binary at: /Users/tahatesser/Code/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 13.0, Build version 13A5212g
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (version 2020.3)
• Android Studio at /Users/tahatesser/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7583922/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
[✓] VS Code (version 1.59.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.25.0
[✓] Connected device (4 available)
• Taha’s iPhone (mobile) • 00008020-001059882212002E • ios • iOS 15.0
• iPhone 11 Pro (mobile) • A9530DDA-3DB6-4737-BD67-26506428926F • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 12.0 21A5304g darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
! Doctor found issues in 1 category.✅: No Issue ❗️: Issue reproduced
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Activity
TahaTesser commentedon Aug 26, 2021
This looks like critical issue as Cocoapods method crashes and also blocks issue triage
cc: @jmagman
jmagman commentedon Aug 26, 2021
Hmm, I just tried it from flutter master and it worked

Can you run

Product > Clean Build Folderfrom Xcode, run on the physical device again, then export the full build logs?TahaTesser commentedon Aug 26, 2021
@jmagman
Thanks for taking a look at this, just tried on my home MBP, same results.
Build IOSFullScreen_2021-08-26T21-14-35.txt
jmagman commentedon Aug 26, 2021
I also tried it again on another machine and it worked...
Are you hitting #88407? What's the output of
ls -la path/to/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework?TahaTesser commentedon Aug 27, 2021
@jmagman
Here is the result
Compared to #88407 (comment), looks like I have
ios-arm64_armv7instead ofios-armv7_arm64TahaTesser commentedon Aug 27, 2021
I tried following the instructions to delete
rm -rf path/to/flutter/sdk/bin/cache/artifacts/engine/ios*on the latestmasterchannel but app still freezes .flutter run -vstill generatesarm64_armv7Logs
run.log
flutter doctor -v
darshankawar commentedon Aug 27, 2021
Verified this on latest master and stable and I was unable to replicate on master wherein, the
FlutterViewControllerlaunches properly on iOS simulator (14.3) and on iPhone 6s (14.4.1) device as below:88968.mov
RPReplay-Final1630058899.MP4
On stable though, it runs properly on simulator, but on device, gets stuck while trying to launch
FlutterViewControlleras below:RPReplay-Final1630059350.MP4
stable and master flutter doctor -v
Keeping this open for further insights, as Taha seems to be consistently experiencing this issue on master and on two different machines.
jmagman commentedon Aug 27, 2021
What is the output of
ls -la flutter_module/.ios/Flutter/engine/Flutter.xcframework?jmagman commentedon Aug 27, 2021
@darshankawar I tried this again on stable on a real device and again it ran fine. Are you hitting #88407? What is the output of
ls -la flutter_module/.ios/Flutter/engine/Flutter.xcframework?darshankawar commentedon Aug 30, 2021
@jmagman No. I think the linked issue is about blank screen upon launch on stable, but in my case, it loads the initial screen but then trying to tap on
launch FlutterViewControllerdoesn't take me to next screen.Output of
ls -la flutter_module/.ios/Flutter/engine/Flutter.xcframework:TahaTesser commentedon Aug 31, 2021
@jmagman
out of
ls -la flutter_module/.ios/Flutter/engine/Flutter.xcframeworkTahaTesser commentedon Sep 7, 2021
I'm also unable to run this sample for triage, which also uses cocoapods method
https://github.com/flutter/samples/tree/master/add_to_app/books
jmagman commentedon Sep 7, 2021
@darshankawar you did indeed hit #88407, you have both
ios-arm64_x86_64-simulatorandios-x86_64-simulator,ios-arm64_armv7andios-armv7_arm64.Delete the cached engine, then
flutter cleanfrom the module. Are you then able to launch the app?@TahaTesser seems to be hitting something else though...
darshankawar commentedon Sep 8, 2021
@jmagman Hi, ok, I see.
With this, yes, I was able to go past the initial screen properly on stable now, as below:
RPReplay-Final1631084712.MP4
Earlier, it used to get stuck after tapping on
Launch FlutterViewController.TahaTesser commentedon Oct 5, 2021
Tried it again today out of curiosity, the issue is somehow fixed itself, I can't reproduce it anymore.
Closing this for now, if it resurface, I will comment
jmagman commentedon Oct 5, 2021
Sorry we never got to the bottom of this...
github-actions commentedon Oct 19, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.