Repository navigation
iOS crash on launch #12086
Copy link
Copy link
Closed
Labels
p: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packageplatform-iosiOS applications specificallyiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to Reproduce
I followed the instructions here to prepare a release for iOS, and tested the app using the iPad emulator. Once I tested it, built it for production, and sent it to the App store for review, they said the app crashed on launch. They attached 3 crash logs that I am not able to interpret.
Logs
Flutter run
Launching lib/main.dart on iPad Pro (12.9-inch) (2nd generation) in debug mode...
Running pod install... 0.9s
Running Xcode build... 8.4s
CoreSimulatorBridge: Requesting installation of file:///Users/derek/Documents/projects/converter/build/ios/iphonesimulator/Runner.app/ with options: {
CFBundleIdentifier = "com.dmmcreations.converter";
PackageType = Developer;
SimulatorRootPath = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk";
SimulatorUserPath = "/Users/derek/Library/Developer/CoreSimulator/Devices/E0170908-6C21-42F3-870A-B60A199A699C/data";
}
state->old_bundle: /Users/derek/Library/Developer/CoreSimulator/Devices/E0170908-6C21-42F3-870A-B60A199A699C/data/Containers/Bundle/Application/B1CEDFC2-4CD3-490E-96C9-0DEB06CACE7C/Runner.app
state->new_bundle: /Users/derek/Documents/projects/converter/build/ios/iphonesimulator/Runner.app
state->dst_bundle: /Users/derek/Library/Developer/CoreSimulator/Devices/E0170908-6C21-42F3-870A-B60A199A699C/data/Library/Caches/com.apple.mobile.installd.staging/temp.eE12OP/extracted/Payload//Runner.app, binaryDiff flag: FALSE
dst_ipa: /Users/derek/Library/Developer/CoreSimulator/Devices/E0170908-6C21-42F3-870A-B60A199A699C/data/Library/Caches/com.apple.mobile.installd.staging/temp.eE12OP/extracted
"<LSApplicationProxy: 0x7fa788d0da50> com.apple.iCloudDriveApp file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/iCloudDriveApp.app <com.apple.iCloudDriveApp <installed >> {6A21884A-450C-4712-933A-5EA0D5EA28C1 100}"
)
"<LSApplicationProxy: 0x7fa788d0da50> com.apple.iCloudDriveApp file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/iCloudDriveApp.app <com.apple.iCloudDriveApp <installed >> {6A21884A-450C-4712-933A-5EA0D5EA28C1 100}"
) (appInfos: (
"<SBApplicationInfo: 0x7fa788d05820; bundleIdentifier: com.apple.iCloudDriveApp; displayName: iCloud Drive; sdkVersion: 10.3>"
))
"<LSApplicationProxy: 0x7fb9bb60d770> com.apple.iCloudDriveApp file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/iCloudDriveApp.app <com.apple.iCloudDriveApp <installed >> {6A21884A-450C-4712-933A-5EA0D5EA28C1 100}"
)
"<LSApplicationProxy: 0x7fa243d66c10> com.apple.iCloudDriveApp file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/iCloudDriveApp.app <com.apple.iCloudDriveApp <installed >> {6A21884A-450C-4712-933A-5EA0D5EA28C1 100}"
)
"<LSApplicationProxy: 0x7fce4ed1cf50> com.apple.iCloudDriveApp file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/iCloudDriveApp.app <com.apple.iCloudDriveApp <installed >> {6A21884A-450C-4712-933A-5EA0D5EA28C1 100}"
)
CoreSimulatorBridge: Requesting launch of com.dmmcreations.converter with options: {
arguments = (
"--enable-dart-profiling",
"--flx=/Users/derek/Documents/projects/converter/build/app.flx",
"--dart-main=/Users/derek/Documents/projects/converter/lib/main.dart",
"--packages=/Users/derek/Documents/projects/converter/.packages",
"--enable-checked-mode",
"--observatory-port=8100",
"--diagnostic-port=8101"
);
environment = {
};
}
CoreSimulatorBridge: Beginning launch sequence for bundle 'com.dmmcreations.converter'
retryTimeout: 300.000000 (default write com.apple.CoreSimulatorBridge LaunchRetryTimeout <value>)
bootTimeout: 300.000000 (default write com.apple.CoreSimulatorBridge BootRetryTimeout <value>)
bootLeeway: 120.000000 (default write com.apple.CoreSimulatorBridge BootLeeway <value>)
Note: Use 'xcrun simctl spawn booted defaults write <domain> <key> <value>' to modify defaults in the booted Simulator device.
Simulator booted at: 2017-09-14 01:08:40 +0000
Current time: 2017-09-14 01:09:19 +0000
Within boot leeway: YES
CoreSimulatorBridge: Launch attempt #0 for bundle 'com.dmmcreations.converter', have been trying to launch for 0 seconds. Modern launch services = YES
CoreSimulatorBridge: Got LSBundleProxy for 'com.dmmcreations.converter', sequenceNumber 248, cacheGUID 6A21884A-450C-4712-933A-5EA0D5EA28C1
CoreSimulatorBridge: [Common] [FBSSystemService][0x61cf] Sending request to open "com.dmmcreations.converter"
CoreSimulatorBridge: [Common] [FBSSystemService][0x61cf] Request successful: <BSProcessHandle: 0x7fd356428960; Runner:1323; valid: YES>
CoreSimulatorBridge: Launch successful for 'com.dmmcreations.converter'
You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
Syncing files to device iPad Pro (12.9-inch) (2nd generation)... 1.6s
🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on iPad Pro (12.9-inch) (2nd generation) is available at: http://127.0.0.1:8100/
For a more detailed help message, press "h". To quit, press "q".
Flutter analyze
Analyzing /Users/derek/Documents/projects/converter...
lint • Avoid empty statements at lib/shared_state.dart:37:37 • empty_statements
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/area.dart:23:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/currency.dart:46:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/data_transfer.dart:21:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/digital_storage.dart:21:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/energy.dart:21:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/frequency.dart:16:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/fuel_economy.dart:15:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/length.dart:23:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/mass.dart:30:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/plane_angle.dart:16:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/pressure.dart:17:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/speed.dart:25:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/temperature.dart:15:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/time.dart:24:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/pages/volume.dart:25:7 • must_be_immutable
hint • This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) at lib/unit_page.dart:38:7 • must_be_immutable
17 issues found.
(Ran in 4.7s)
Crash log 1
{"app_name":"Runner","timestamp":"2017-09-13 10:27:21.42 -0700","app_version":"1.0","slice_uuid":"dadc0c88-dd55-3069-a595-695eae4882eb","adam_id":1280793571,"build_version":"1","bundleID":"com.dmmcreations.converter","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.3.3 (14G60)","incident_id":"44E05ABA-1FE7-4DB5-846F-6448E21042C6","name":"Runner"}
Incident Identifier: 44E05ABA-1FE7-4DB5-846F-6448E21042C6
CrashReporter Key: 4b9f91de9ec03d6169edbc398b1c916e363a57ed
Hardware Model: xxx
Process: Runner [1752]
Path: /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner
Identifier: com.dmmcreations.converter
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.dmmcreations.converter [564]
Date/Time: 2017-09-13 10:27:21.3862 -0700
Launch Time: 2017-09-13 10:27:21.3037 -0700
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: @rpath/App.framework/App | Referenced from: /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner | Reason: no suitable image found. Did find: | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App | | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App | | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Framewo
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 Crashed:
0 dyld 0x00000001001328bc 0x10010c000 + 157884
1 dyld 0x0000000100132268 0x10010c000 + 156264
2 dyld 0x0000000100132294 0x10010c000 + 156308
3 dyld 0x00000001001103bc 0x10010c000 + 17340
4 dyld 0x00000001001129c4 0x10010c000 + 27076
5 dyld 0x000000010010d044 0x10010c000 + 4164
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016fd82600 x3: 0x0000000000000087
x4: 0x000000016fd82200 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000ae0
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x37342d364144412d x11: 0x2d323835412d4337
x12: 0x374645374538442d x13: 0x75522f3734434630 x14: 0x7070612e72656e6e x15: 0x6f77656d6172462f
x16: 0x0000000000000209 x17: 0x0000000080000018 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016fd82200 x21: 0x0000000000000087 x22: 0x000000016fd82600 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x0000000100141000 x26: 0x0000000100143bc8 x27: 0x00000001001417ac
x28: 0x0000000100141000 fp: 0x000000016fd821d0 lr: 0x0000000100132268
sp: 0x000000016fd82190 pc: 0x00000001001328bc cpsr: 0x00000000
Binary Images:
0x10007c000 - 0x100083fff Runner arm64 <dadc0c88dd553069a595695eae4882eb> /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner
0x10010c000 - 0x10013ffff dyld arm64 <93b6f8d0b0c03d8695fbd178c57cb071> /usr/lib/dyld
0x100194000 - 0x100f5ffff Flutter arm64 <b347bccd98c234c5a6ab283d8c5a09de> /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/Flutter.framework/Flutter
EOF
Crash log 2
{"app_name":"Runner","timestamp":"2017-09-13 10:27:08.30 -0700","app_version":"1.0","slice_uuid":"dadc0c88-dd55-3069-a595-695eae4882eb","adam_id":1280793571,"build_version":"1","bundleID":"com.dmmcreations.converter","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.3.3 (14G60)","incident_id":"67823DA5-91C8-4A56-8D81-9C43C4CEC69C","name":"Runner"}
Incident Identifier: 67823DA5-91C8-4A56-8D81-9C43C4CEC69C
CrashReporter Key: 4b9f91de9ec03d6169edbc398b1c916e363a57ed
Hardware Model: xxx
Process: Runner [1749]
Path: /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner
Identifier: com.dmmcreations.converter
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.dmmcreations.converter [560]
Date/Time: 2017-09-13 10:27:08.2587 -0700
Launch Time: 2017-09-13 10:27:08.1457 -0700
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: @rpath/App.framework/App | Referenced from: /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner | Reason: no suitable image found. Did find: | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App | | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App | | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Framewo
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 Crashed:
0 dyld 0x00000001001c68bc 0x1001a0000 + 157884
1 dyld 0x00000001001c6268 0x1001a0000 + 156264
2 dyld 0x00000001001c6294 0x1001a0000 + 156308
3 dyld 0x00000001001a43bc 0x1001a0000 + 17340
4 dyld 0x00000001001a69c4 0x1001a0000 + 27076
5 dyld 0x00000001001a1044 0x1001a0000 + 4164
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016fd1a600 x3: 0x0000000000000087
x4: 0x000000016fd1a200 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000ae0
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x37342d364144412d x11: 0x2d323835412d4337
x12: 0x374645374538442d x13: 0x75522f3734434630 x14: 0x7070612e72656e6e x15: 0x6f77656d6172462f
x16: 0x0000000000000209 x17: 0x0000000080000018 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016fd1a200 x21: 0x0000000000000087 x22: 0x000000016fd1a600 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x00000001001d5000 x26: 0x00000001001d7bc8 x27: 0x00000001001d57ac
x28: 0x00000001001d5000 fp: 0x000000016fd1a1d0 lr: 0x00000001001c6268
sp: 0x000000016fd1a190 pc: 0x00000001001c68bc cpsr: 0x00000000
Binary Images:
0x1000e4000 - 0x1000ebfff Runner arm64 <dadc0c88dd553069a595695eae4882eb> /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner
0x1001a0000 - 0x1001d3fff dyld arm64 <93b6f8d0b0c03d8695fbd178c57cb071> /usr/lib/dyld
0x100228000 - 0x100ff3fff Flutter arm64 <b347bccd98c234c5a6ab283d8c5a09de> /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/Flutter.framework/Flutter
EOF
Crash log 3
{"app_name":"Runner","timestamp":"2017-09-13 10:27:16.64 -0700","app_version":"1.0","slice_uuid":"dadc0c88-dd55-3069-a595-695eae4882eb","adam_id":1280793571,"build_version":"1","bundleID":"com.dmmcreations.converter","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.3.3 (14G60)","incident_id":"8C7C51BC-7C73-4573-A57D-545ED5C0D6B5","name":"Runner"}
Incident Identifier: 8C7C51BC-7C73-4573-A57D-545ED5C0D6B5
CrashReporter Key: 4b9f91de9ec03d6169edbc398b1c916e363a57ed
Hardware Model: xxx
Process: Runner [1751]
Path: /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner
Identifier: com.dmmcreations.converter
Version: 1 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.dmmcreations.converter [562]
Date/Time: 2017-09-13 10:27:16.6161 -0700
Launch Time: 2017-09-13 10:27:16.5523 -0700
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded: @rpath/App.framework/App | Referenced from: /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner | Reason: no suitable image found. Did find: | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App | | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App | | /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/App.framework/App: mremap_encrypted() => -1, errno=12 for /private/var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Framewo
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 Crashed:
0 dyld 0x00000001001568bc 0x100130000 + 157884
1 dyld 0x0000000100156268 0x100130000 + 156264
2 dyld 0x0000000100156294 0x100130000 + 156308
3 dyld 0x00000001001343bc 0x100130000 + 17340
4 dyld 0x00000001001369c4 0x100130000 + 27076
5 dyld 0x0000000100131044 0x100130000 + 4164
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000006 x1: 0x0000000000000001 x2: 0x000000016fdda600 x3: 0x0000000000000087
x4: 0x000000016fdda200 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000ae0
x8: 0x0000000000000020 x9: 0x0000000000000009 x10: 0x37342d364144412d x11: 0x2d323835412d4337
x12: 0x374645374538442d x13: 0x75522f3734434630 x14: 0x7070612e72656e6e x15: 0x6f77656d6172462f
x16: 0x0000000000000209 x17: 0x0000000080000018 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000016fdda200 x21: 0x0000000000000087 x22: 0x000000016fdda600 x23: 0x0000000000000001
x24: 0x0000000000000006 x25: 0x0000000100165000 x26: 0x0000000100167bc8 x27: 0x00000001001657ac
x28: 0x0000000100165000 fp: 0x000000016fdda1d0 lr: 0x0000000100156268
sp: 0x000000016fdda190 pc: 0x00000001001568bc cpsr: 0x00000000
Binary Images:
0x100024000 - 0x10002bfff Runner arm64 <dadc0c88dd553069a595695eae4882eb> /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Runner
0x100130000 - 0x100163fff dyld arm64 <93b6f8d0b0c03d8695fbd178c57cb071> /usr/lib/dyld
0x1001b8000 - 0x100f83fff Flutter arm64 <b347bccd98c234c5a6ab283d8c5a09de> /var/containers/Bundle/Application/FBCD7F3C-ADA6-477C-A582-D8E7EF70FC47/Runner.app/Frameworks/Flutter.framework/Flutter
EOF
Flutter Doctor
[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-CA, channel alpha)
• Flutter at /Users/derek/flutter
• Framework revision 1c372c6803 (13 days ago), 2017-08-31 15:54:45 -0700
• Engine revision f9e00a7c72
• Tools Dart version 1.25.0-dev.11.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✗] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[✓] Connected devices
• iPad Pro (12.9-inch) (2nd generation) • E0170908-6C21-42F3-870A-B60A199A699C • ios • iOS 10.3 (simulator)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packageplatform-iosiOS applications specificallyiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
txthinking commentedon Sep 28, 2017
I also encountered this problem,
It works well on my iPhone SE device when debug,
so next step is release and submit to App Store,
then reviewer told me that app crashed on launch.
And I found someone encountered this problem too:
https://stackoverflow.com/questions/45490419/flutter-app-can-debug-on-an-ios-device-simulator-but-crashes-immediately-when-in
I analyzed the crash log using symbolicatecrash tool:
flutter doctor
pubspec.yml
txthinking commentedon Sep 28, 2017
Append:
Project created with
flutter create -i swfit -a javaios/Podfile
yukuku commentedon Sep 28, 2017
This happened to me too today. Simulator works, but when deployed to TestFlight it crashes. I do not have a physical iOS device so I can't try it myself.
Flutter doctor output:
txthinking commentedon Sep 28, 2017
eseidelGoogle commentedon Sep 28, 2017
@cbracken is probably the right person to look.
yukuku commentedon Sep 28, 2017
I found a solution to my project. It does not crash anymore now.
The important part is to make sure you are using the
ios-releaselibrary, not theiosone.I think this will be configured correctly by running
flutter build iosbefore opening Xcode.Look at my Podfile.lock changes before (when it didn't work) and after (when it worked):
Actually this is mentioned in the docs:
milne-dev commentedon Sep 29, 2017
@yukuku I think restarting xcode after running the build command is what fixed it for me as well. The strange thing is that I am running xcode 8.3.3, so it shouldn't have made a difference.
cbracken commentedon Sep 29, 2017
@yukuku correct - you definitely want to be building in release mode. The iOS releasing guide covers this, but the current behaviour is definitely not a great developer experience. If there's a way for us to identify that a given build is intended for releasing, we should just do the right thing automatically. Getting an unsymbolicated crash log certainly isn't great dev-exp.
I'll give a run through the current releasing doc and see what we could do to make this better. Thanks for filing this and for updating with the solution.
cbracken commentedon Sep 29, 2017
@Michael77 IIRC as of version 8.3, Xcode should detect updates to .xcconfig files (where we write the build mode) without a restart. From the Xcode release notes under the 8.3 'Resolved issues' section:
I'll give a quick test to check whether there's been a regression there and if so, file a Radar with Apple. There was a point in mid-August when there was a build mode cache invalidation bug in the flutter tool that would have caused similar behaviour but that should have been fixed in #11793. I'll take a look. Thanks for reporting this.
This may also be a bug in how we deal with CocoaPods. It's possible something's incorrect in our handling of build mode switching there.
cbracken commentedon Oct 27, 2017
From
xcode_backend.shwe should be able to detect Archive builds by checking for"$ACTION" == "install". In these cases, we can probably just force the build to release mode. At minimum, that means setting:7 remaining items
Manual roll of engine 7ea9884...5b94c8a (#40275)
Roll engine from 7ea9884..3c6383f (77 commits 🔥) (#40372)
Roll engine to 6e6de94
Roll engine to 6e6de94 (#40394)
Roll engine 7ea9884..1b63444 (91 commits 🔥🔥🔥) (#40442)
Manual roll of engine 7ea9884...5b94c8a (flutter#40275)
Roll engine from 7ea9884..3c6383f (77 commits 🔥) (flutter#40372)
Roll engine to 6e6de94 (flutter#40394)
Roll engine 7ea9884..1b63444 (91 commits 🔥🔥🔥) (flutter#40442)
github-actions commentedon Sep 3, 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.