{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/16361","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/16361/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/16361/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/16361/events","html_url":"https://github.com/flutter/flutter/issues/16361","id":312393799,"number":16361,"title":"Flutter+Firestore iOS app crashes only when installed from iTunes","user":{"login":"wkethman","id":287958,"avatar_url":"https://avatars2.githubusercontent.com/u/287958?v=4","gravatar_id":"","url":"https://api.github.com/users/wkethman","html_url":"https://github.com/wkethman","followers_url":"https://api.github.com/users/wkethman/followers","following_url":"https://api.github.com/users/wkethman/following{/other_user}","gists_url":"https://api.github.com/users/wkethman/gists{/gist_id}","starred_url":"https://api.github.com/users/wkethman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkethman/subscriptions","organizations_url":"https://api.github.com/users/wkethman/orgs","repos_url":"https://api.github.com/users/wkethman/repos","events_url":"https://api.github.com/users/wkethman/events{/privacy}","received_events_url":"https://api.github.com/users/wkethman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-09T04:59:36Z","updated_at":"2018-04-11T12:17:03Z","closed_at":null,"author_association":"NONE","body":"Does anyone have any thoughts?\r\n\r\nThe application can be compiled to run on both Android and iOS simulator (and through an attached iPhone in debug mode) - functions as expected. The application has been uploaded to Google Play and functions appropriately. The crash occurs after you have gone through the validation process, released by iOS (the first time it made it through and was crashing and the second time it was rejected because they caught it). The interesting part about this is that its difficult to debug because it crashes only after uploaded, not when debugging locally.\r\n\r\nDependencies:\r\nurl_launcher: ^3.0.0\r\nshared_preferences: ^0.4.0\r\ncloud_firestore: ^0.4.0\r\n\r\nThere is a warning on iOS build that may be related to the crash but I would think this would cause a crash in development and not just when uploaded:\r\n\r\n4.9.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. \r\n\r\n## Logs\r\n\r\nWhen uploaded to iTunes the application crashes on load with the following error:\r\n\r\n{\"app_name\":\"Runner\",\"timestamp\":\"2018-04-07 22:41:40.96 -0700\",\"app_version\":\"1.1\",\"slice_uuid\":\"\",\"adam_id\":0,\"build_version\":\"2\",\"bundleID\":\"com..rc\",\"share_with_app_devs\":false,\"is_first_party\":false,\"bug_type\":\"109\",\"os_version\":\"iPhone OS 11.2.5 (15D60)\",\"incident_id\":\"\",\"name\":\"Runner\"}\r\n\r\nIncident Identifier: C7E34EB2-0AA8-4D95-BBF2-4E323782A535\r\nCrashReporter Key:   e7281b7b0d5ea708a1d85030a4736854635fe52e\r\nHardware Model:      iPhone9,3\r\nDevice Model:        D101AP\r\nProcess:             Runner [4283]\r\nPath:                /private/var/containers/Bundle/Application/CEE81B18-1601-4704-8264-E6223725FE48/Runner.app/Runner\r\nIdentifier:          com..rc\r\nVersion:             2 (1.1)\r\nCode Type:           ARM-64 (Native)\r\nRole:                Foreground\r\nParent Process:      launchd.development [1]\r\nCoalition:           com..rc [817]\r\n\r\n\r\nDate/Time:           2018-04-07 22:41:40.8934 -0700\r\nLaunch Time:         2018-04-07 22:41:40.3694 -0700\r\nOS Version:          iPhone OS 11.2.5 (15D60)\r\nBaseband Version:    2.02.04_DEBUG\r\nUDID:                d33d789e6dcbdf39cd323f95f8c5366344f52ba0\r\nReport Version:      104\r\n\r\nException Type:  EXC_CRASH (SIGABRT)\r\nException Codes: 0x0000000000000000, 0x0000000000000000\r\nException Note:  EXC_CORPSE_NOTIFY\r\nTermination Description: DYLD, Symbol not found: _OBJC_CLASS_$_FIRApp | Referenced from: /private/var/containers/Bundle/Application/CEE81B18-1601-4704-8264-E6223725FE48/Runner.app/Frameworks/cloud_firestore.framework/cloud_firestore | Expected in: flat namespace | in /private/var/containers/Bundle/Application/CEE81B18-1601-4704-8264-E6223725FE48/Runner.app/Frameworks/cloud_firestore.framework/cloud_firestore\r\nTriggered by Thread:  0\r\n\r\nFiltered syslog:\r\nTimestamp              \tThread     Type        Activity             PID\r\n2018-04-07 22:21:37.2989 -0700\t0x868c 1024 0x0 102 hangtracerd: SpringBoard: Moving tailspin to spool: /var/root/Library/Caches/hangtracerd/spool/UIKit-runloop-SpringBoard-2018-04-07-222137.tailspin\r\n2018-04-07 22:21:37.2991 -0700\t0x868c 1024 0x0 102 hangtracerd: SpringBoard Log credits: 1 -> 0\r\n2018-04-07 22:21:37.2991 -0700\t0x868c 1024 0x0 102 hangtracerd: Daily Log credits: 18 -> 17\r\n2018-04-07 22:25:48.7911 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin\r\n2018-04-07 22:25:48.8725 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end\r\n2018-04-07 22:26:00.0015 -0700\t0x9d03 1024 0x0 102 hangtracerd: XPC: Client started new connection: pid 3340\r\n2018-04-07 22:26:00.0023 -0700\t0x9d03 1024 0x0 102 hangtracerd: New proc: /private/var/containers/Bundle/Application/AC3B2C52-942C-44FD-A7E1-AEDA81916A25/Halos.app/Halos(3340)\r\n2018-04-07 22:26:00.0023 -0700\t0x9d03 1024 0x0 102 hangtracerd: Initialization complete now watching hangs for Halos(3340) | UIKit-runloop\r\n2018-04-07 22:26:42.9680 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin\r\n2018-04-07 22:26:43.0596 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end\r\n2018-04-07 22:27:02.8876 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin\r\n2018-04-07 22:27:02.9051 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end\r\n2018-04-07 22:27:11.0515 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin\r\n2018-04-07 22:27:11.0719 -0700\t0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end\r\n2018-04-07 22:28:17.4558 -0700\t0x9d03 1024 0x0 102 hangtracerd: SpringBoard credits increased to: 1\r\n2018-04-07 22:28:24.0847 -0700\t0x9d03 1024 0x0 102 hangtracerd: Client disconnected: 3340\r\n2018-04-07 22:30:06.9670 -0700\t0x9d03 1024 0x0 102 hangtracerd: SpringBoard: Hang detected 0.61s (UIKit-runloop)\r\n2018-04-07 22:30:06.9671 -0700\t0x9d03 1024 0x0 102 hangtracerd: SpringBoard: Attempting to save tailspin at /var/root/Library/Caches/hangtracerd/tmp/UIKit-runloop-SpringBoard-2018-04-07-223006.tailspin\r\n2018-04-07 22:30:07.0966 -0700\t0x9d03 1024 0x0 102 hangtracerd: SpringBoard: Moving tailspin to spool: /var/root/Library/Caches/hangtracerd/spool/UIKit-runloop-SpringBoard-2018-04-07-223006.tailspin\r\n2018-04-07 22:30:07.0969 -0700\t0x9d03 1024 0x0 102 hangtracerd: SpringBoard Log credits: 1 -> 0\r\n2018-04-07 22:30:07.0970 -0700\t0x9d03 1024 0x0 102 hangtracerd: Daily Log credits: 17 -> 16\r\n2018-04-07 22:33:43.3368 -0700\t0x9d03 1024 0x0 102 hangtracerd: XPC: Client started new connection: pid 3821\r\n2018-04-07 22:33:43.3369 -0700\t0x9d03 1024 0x0 102 hangtracerd: New proc: /private/var/containers/Bundle/Application/D9839EC2-CF0D-4A1C-B36B-759650A629FF/All of Us.app/All of Us(3821)\r\n2018-04-07 22:33:43.3371 -0700\t0x9d03 1024 0x0 102 hangtracerd: Initialization complete now watching hangs for All of Us(3821) | UIKit-runloop\r\n2018-04-07 22:33:54.6262 -0700\t0x9d03 1024 0x2661f 102 hangtracerd: HTFenceTracking: Fence begin\r\n2018-04-07 22:33:54.7030 -0700\t0x9d03 1024 0x2661f 102 hangtracerd: HTFenceTracking: Fence end\r\n2018-04-07 22:36:13.0167 -0700\t0xdaa 1024 0x0 102 hangtracerd: Client disconnected: 3821\r\n2018-04-07 22:37:27.8166 -0700\t0xdaa 1024 0x0 102 hangtracerd: SpringBoard: Hang detected 0.73s (UIKit-runloop)\r\n\r\nThread 0 Crashed:\r\n0   dyld                          \t0x00000001035daf48 __abort_with_payload + 8\r\n1   dyld                          \t0x00000001035da71c abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:71)\r\n2   dyld                          \t0x00000001035da748 abort_with_payload + 12 (terminate_with_reason.c:93)\r\n3   dyld                          \t0x00000001035b0498 dyld::halt(char const*) + 312 (dyld.cpp:3824)\r\n4   dyld                          \t0x00000001035b3714 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 7376 (dyld.cpp:6202)\r\n5   dyld                          \t0x00000001035ad21c _dyld_start + 68\r\n\r\nThread 0 crashed with ARM Thread State (64-bit):\r\n    x0: 0x0000000000000006   x1: 0x0000000000000004   x2: 0x000000016ce26350   x3: 0x00000000000000c8\r\n    x4: 0x000000016ce25f50   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000\r\n    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x77656d6172662e65  x11: 0x756f6c632f6b726f\r\n   x12: 0x72662e65726f7473  x13: 0x2f6b726f77656d61  x14: 0x69665f64756f6c63  x15: 0x0065726f74736572\r\n   x16: 0x0000000000000209  x17: 0x0000000000000080  x18: 0xfffffff017751260  x19: 0x0000000000000000\r\n   x20: 0x000000016ce25f50  x21: 0x00000000000000c8  x22: 0x000000016ce26350  x23: 0x0000000000000004\r\n   x24: 0x0000000000000006  x25: 0x0000000102fd8000  x26: 0x00000001035ee000  x27: 0x00000001035edf88\r\n   x28: 0x000000016ce27950   fp: 0x000000016ce25f20   lr: 0x00000001035da71c\r\n    sp: 0x000000016ce25ee0   pc: 0x00000001035daf48 cpsr: 0x00000000\r\n\r\n## Flutter Doctor\r\n\r\n[✓] Flutter (Channel dev, v0.2.9, on Mac OS X 10.13.4 17E199, locale en-US)\r\n    • Flutter version 0.2.9 at /Users/wkethman/flutter\r\n    • Framework revision 487e6bc91e (5 days ago), 2018-04-03 10:59:12 -0700\r\n    • Engine revision 04f3c6557c\r\n    • Dart version 2.0.0-dev.43.0.flutter-52afcba357\r\n\r\n[!] Android toolchain - develop for Android devices (Android SDK 26.0.2)\r\n    • Android SDK at /Users/wkethman/Library/Android/sdk\r\n    • Android NDK location not configured (optional; useful for native profiling support)\r\n    • Platform android-27, build-tools 26.0.2\r\n    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)\r\n    ✗ Android license status unknown.\r\n\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)\r\n    • Xcode at /Applications/Xcode.app/Contents/Developer\r\n    • Xcode 9.3, Build version 9E145\r\n    • ios-deploy 1.9.2\r\n    • CocoaPods version 1.4.0\r\n\r\n[✓] Android Studio (version 3.1)\r\n    • Android Studio at /Applications/Android Studio.app/Contents\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)\r\n\r\n[✓] Connected devices (1 available)\r\n    • iPhone 6 • 9A7CCBF4-AF4B-415E-BB7E-9E8FAE3FBD78 • ios • iOS 11.3 (simulator)\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/380431041","html_url":"https://github.com/flutter/flutter/issues/16361#issuecomment-380431041","issue_url":"https://api.github.com/repos/flutter/flutter/issues/16361","id":380431041,"user":{"login":"bizz84","id":153167,"avatar_url":"https://avatars0.githubusercontent.com/u/153167?v=4","gravatar_id":"","url":"https://api.github.com/users/bizz84","html_url":"https://github.com/bizz84","followers_url":"https://api.github.com/users/bizz84/followers","following_url":"https://api.github.com/users/bizz84/following{/other_user}","gists_url":"https://api.github.com/users/bizz84/gists{/gist_id}","starred_url":"https://api.github.com/users/bizz84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bizz84/subscriptions","organizations_url":"https://api.github.com/users/bizz84/orgs","repos_url":"https://api.github.com/users/bizz84/repos","events_url":"https://api.github.com/users/bizz84/events{/privacy}","received_events_url":"https://api.github.com/users/bizz84/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T12:17:02Z","updated_at":"2018-04-11T12:17:02Z","author_association":"NONE","body":"Same issue here.\r\n\r\n### Crash error from Console\r\n\r\nWhen running a CI build on a device, we have observed the following crash on the Console:\r\n\r\n```\r\nException Type:  EXC_CRASH (SIGABRT)\r\nException Codes: 0x0000000000000000, 0x0000000000000000\r\nException Note:  EXC_CORPSE_NOTIFY\r\nTermination Description: DYLD, Symbol not found: _OBJC_CLASS_$_FIRApp | Referenced from: /private/var/containers/Bundle/Application/C77FC4F0-9400-4F09-92A1-33A374706F2D/Runner.app/Frameworks/firebase_auth.framework/firebase_auth | Expected in: flat namespace | in /private/var/containers/Bundle/Application/C77FC4F0-9400-4F09-92A1-33A374706F2D/Runner.app/Frameworks/firebase_auth.framework/firebase_auth\r\nTriggered by Thread:  0\r\n```\r\n\r\n### flutter doctor\r\n\r\n```\r\n[✓] Flutter (Channel beta, v0.2.8, on Mac OS X 10.13.4 17E199, locale en-US)\r\n[✗] Android toolchain - develop for Android devices\r\n    ✗ Unable to locate Android SDK.\r\n      Install Android Studio from: https://developer.android.com/studio/index.html\r\n      On first launch it will assist you in installing the Android SDK components.\r\n      (or visit https://flutter.io/setup/#android-setup for detailed instructions).\r\n      If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)\r\n[✗] Android Studio (not installed)\r\n[!] Connected devices\r\n    ! No devices available\r\n```\r\n\r\n## Setup\r\n\r\n* We ran our build with `flutter build ios --release --preview-dart-2`\r\n* We have followed the instructions from [#12086](https://github.com/flutter/flutter/issues/12086#issuecomment-332868543) and ensured our pod installation points to `ios-release`\r\n\r\n```\r\n DEPENDENCIES:\r\n-  - Flutter (from `<my_flutter_path>/bin/cache/artifacts/engine/ios`)\r\n+  - Flutter (from `<my_flutter_path>/bin/cache/artifacts/engine/ios-release`)\r\n  ...\r\n EXTERNAL SOURCES:\r\n   Flutter:\r\n-    :path: <my_flutter_path>/bin/cache/artifacts/engine/ios\r\n+    :path: <my_flutter_path>/bin/cache/artifacts/engine/ios-release\r\n```\r\n\r\n### CI runner code\r\n\r\n```\r\n#!/usr/bin/env bash\r\n\r\nset -e\t# exit on first failed command\r\nset -x  # print all executed commands to the terminal\r\n\r\ncd ..\r\n\r\ngit clone -b beta https://github.com/flutter/flutter.git\r\nexport PATH=`pwd`/flutter/bin:$PATH\r\n\r\nbrew install --HEAD libimobiledevice\r\nbrew install ideviceinstaller\r\nbrew install ios-deploy\r\n\r\npip install six\r\n\r\nflutter doctor\r\n\r\n#sudo gem update cocoapods\r\n\r\ncd git\r\n\r\nflutter packages get\r\n\r\ncd ios\r\npod install\r\ncd ..\r\n\r\nflutter test --preview-dart-2\r\nflutter build ios --release --preview-dart-2\r\n```\r\n\r\n**NOTE**: On a test branch we have removed Firebase entirely from the project, and the release build no longer crashes on device.\r\n"}}
{"actor":{"display_login":"bizz84"}}