iOS app crash after publishing

891 views
Skip to first unread message

wil...@wckethman.com

unread,
Apr 8, 2018, 4:02:13 PM4/8/18
to Flutter Dev
Flutter application that runs through Android Studio and Xcode on iOS simulator (and debug device) and after deployment to Google Play without issue and as expected, crashes with attached debug once deployed to iTunes:

Hardware Model:      iPhone7,2
Process:             Runner [824]
Path:                /private/var/containers/Bundle/Application/***/Runner.app/Runner
Identifier:          com.***.rc
Version:             1 (1.0)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.***.rc [622]

Date/Time:           2018-04-07 15:43:37.4435 -0700
Launch Time:         2018-04-07 15:43:37.3177 -0700
OS Version:          iPhone OS 11.0.2 (15A421)
Baseband Version:    6.17.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Description: DYLD, Symbol not found: _OBJC_CLASS_$_FIRApp | Referenced from: /private/var/containers/Bundle/Application/1A3741C2-BC59-44BF-B5FD-D3F45391C524/Runner.app/Frameworks/cloud_firestore.framework/cloud_firestore | Expected in: flat namespace | in /private/var/containers/Bundle/Application/1A3741C2-BC59-44BF-B5FD-D3F45391C524/Runner.app/Frameworks/cloud_firestore.framework/cloud_firestore
Triggered by Thread:  0

Any thoughts? I suspect that this has something to do with Deployment/Distribution certificates and Firestore authentication
Runner-2018-04-07-154337.ips

wil...@wckethman.com

unread,
Apr 9, 2018, 12:55:25 AM4/9/18
to Flutter Dev
Additional information:

Does anyone have any thoughts?

Flutter (Channel dev, v0.2.9, on Mac OS X 10.13.4 17E199, locale en-US)
Android toolchain - develop for Android devices (Android SDK 26.0.2)
iOS toolchain - develop for iOS devices (Xcode 9.3)
Android Studio (version 3.1)

Dependencies:
url_launcher: ^3.0.0
shared_preferences: ^0.4.0
cloud_firestore: ^0.4.0

Application can be compiled to run on both Android and iOS simulator (and through an attached iPhone in debug mode) - functions as expected. There 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:

4.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. 

The application has been uploaded to Google Play and functions appropriately. When uploaded to iTunes the application crashes on load with the following error:

{"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"}

Incident Identifier: C7E34EB2-0AA8-4D95-BBF2-4E323782A535
CrashReporter Key:   e7281b7b0d5ea708a1d85030a4736854635fe52e
Hardware Model:      iPhone9,3
Device Model:        D101AP
Process:             Runner [4283]
Path:                /private/var/containers/Bundle/Application/CEE81B18-1601-4704-8264-E6223725FE48/Runner.app/Runner
Identifier:          com..rc
Version:             2 (1.1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd.development [1]
Coalition:           com..rc [817]


Date/Time:           2018-04-07 22:41:40.8934 -0700
Launch Time:         2018-04-07 22:41:40.3694 -0700
OS Version:          iPhone OS 11.2.5 (15D60)
Baseband Version:    2.02.04_DEBUG
UDID:                d33d789e6dcbdf39cd323f95f8c5366344f52ba0
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination 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
Triggered by Thread:  0

Filtered syslog:
Timestamp              Thread     Type        Activity             PID
2018-04-07 22:21:37.2989 -0700 0x868c 1024 0x0 102 hangtracerd: SpringBoard: Moving tailspin to spool: /var/root/Library/Caches/hangtracerd/spool/UIKit-runloop-SpringBoard-2018-04-07-222137.tailspin
2018-04-07 22:21:37.2991 -0700 0x868c 1024 0x0 102 hangtracerd: SpringBoard Log credits: 1 -> 0
2018-04-07 22:21:37.2991 -0700 0x868c 1024 0x0 102 hangtracerd: Daily Log credits: 18 -> 17
2018-04-07 22:25:48.7911 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin
2018-04-07 22:25:48.8725 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end
2018-04-07 22:26:00.0015 -0700 0x9d03 1024 0x0 102 hangtracerd: XPC: Client started new connection: pid 3340
2018-04-07 22:26:00.0023 -0700 0x9d03 1024 0x0 102 hangtracerd: New proc: /private/var/containers/Bundle/Application/AC3B2C52-942C-44FD-A7E1-AEDA81916A25/Halos.app/Halos(3340)
2018-04-07 22:26:00.0023 -0700 0x9d03 1024 0x0 102 hangtracerd: Initialization complete now watching hangs for Halos(3340) | UIKit-runloop
2018-04-07 22:26:42.9680 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin
2018-04-07 22:26:43.0596 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end
2018-04-07 22:27:02.8876 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin
2018-04-07 22:27:02.9051 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end
2018-04-07 22:27:11.0515 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence begin
2018-04-07 22:27:11.0719 -0700 0x9d03 1024 0x0 102 hangtracerd: HTFenceTracking: Fence end
2018-04-07 22:28:17.4558 -0700 0x9d03 1024 0x0 102 hangtracerd: SpringBoard credits increased to: 1
2018-04-07 22:28:24.0847 -0700 0x9d03 1024 0x0 102 hangtracerd: Client disconnected: 3340
2018-04-07 22:30:06.9670 -0700 0x9d03 1024 0x0 102 hangtracerd: SpringBoard: Hang detected 0.61s (UIKit-runloop)
2018-04-07 22:30:06.9671 -0700 0x9d03 1024 0x0 102 hangtracerd: SpringBoard: Attempting to save tailspin at /var/root/Library/Caches/hangtracerd/tmp/UIKit-runloop-SpringBoard-2018-04-07-223006.tailspin
2018-04-07 22:30:07.0966 -0700 0x9d03 1024 0x0 102 hangtracerd: SpringBoard: Moving tailspin to spool: /var/root/Library/Caches/hangtracerd/spool/UIKit-runloop-SpringBoard-2018-04-07-223006.tailspin
2018-04-07 22:30:07.0969 -0700 0x9d03 1024 0x0 102 hangtracerd: SpringBoard Log credits: 1 -> 0
2018-04-07 22:30:07.0970 -0700 0x9d03 1024 0x0 102 hangtracerd: Daily Log credits: 17 -> 16
2018-04-07 22:33:43.3368 -0700 0x9d03 1024 0x0 102 hangtracerd: XPC: Client started new connection: pid 3821
2018-04-07 22:33:43.3369 -0700 0x9d03 1024 0x0 102 hangtracerd: New proc: /private/var/containers/Bundle/Application/D9839EC2-CF0D-4A1C-B36B-759650A629FF/All of Us.app/All of Us(3821)
2018-04-07 22:33:43.3371 -0700 0x9d03 1024 0x0 102 hangtracerd: Initialization complete now watching hangs for All of Us(3821) | UIKit-runloop
2018-04-07 22:33:54.6262 -0700 0x9d03 1024 0x2661f 102 hangtracerd: HTFenceTracking: Fence begin
2018-04-07 22:33:54.7030 -0700 0x9d03 1024 0x2661f 102 hangtracerd: HTFenceTracking: Fence end
2018-04-07 22:36:13.0167 -0700 0xdaa 1024 0x0 102 hangtracerd: Client disconnected: 3821
2018-04-07 22:37:27.8166 -0700 0xdaa 1024 0x0 102 hangtracerd: SpringBoard: Hang detected 0.73s (UIKit-runloop)

Thread 0 Crashed:
0   dyld                          0x00000001035daf48 __abort_with_payload + 8
1   dyld                          0x00000001035da71c abort_with_payload_wrapper_internal + 100 (terminate_with_reason.c:71)
2   dyld                          0x00000001035da748 abort_with_payload + 12 (terminate_with_reason.c:93)
3   dyld                          0x00000001035b0498 dyld::halt(char const*) + 312 (dyld.cpp:3824)
4   dyld                          0x00000001035b3714 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 7376 (dyld.cpp:6202)
5   dyld                          0x00000001035ad21c _dyld_start + 68

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000004   x2: 0x000000016ce26350   x3: 0x00000000000000c8
    x4: 0x000000016ce25f50   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000000000020   x9: 0x0000000000000009  x10: 0x77656d6172662e65  x11: 0x756f6c632f6b726f
   x12: 0x72662e65726f7473  x13: 0x2f6b726f77656d61  x14: 0x69665f64756f6c63  x15: 0x0065726f74736572
   x16: 0x0000000000000209  x17: 0x0000000000000080  x18: 0xfffffff017751260  x19: 0x0000000000000000
   x20: 0x000000016ce25f50  x21: 0x00000000000000c8  x22: 0x000000016ce26350  x23: 0x0000000000000004
   x24: 0x0000000000000006  x25: 0x0000000102fd8000  x26: 0x00000001035ee000  x27: 0x00000001035edf88
   x28: 0x000000016ce27950   fp: 0x000000016ce25f20   lr: 0x00000001035da71c
    sp: 0x000000016ce25ee0   pc: 0x00000001035daf48 cpsr: 0x00000000

laki...@gmail.com

unread,
Apr 11, 2018, 10:36:13 AM4/11/18
to Flutter Dev
Does it run from your local set up in release mode, i.e. not debug?

William Kethman

unread,
Apr 11, 2018, 10:43:28 PM4/11/18
to laki...@gmail.com, Flutter Dev
It runs in local setup and in release mode, just not on app store

On Mon, Apr 9, 2018 at 2:45 PM, <laki...@gmail.com> wrote:
Does it run from your local set up in release mode, i.e. not debug?

--
You received this message because you are subscribed to a topic in the Google Groups "Flutter Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/flutter-dev/bJa9DV_tvbE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flutter-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Seidel

unread,
Apr 11, 2018, 11:46:44 PM4/11/18
to wil...@wckethman.com, Flutter Dev
We believe we understand the bug and have a fix:

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

laki...@gmail.com

unread,
Apr 11, 2018, 11:51:02 PM4/11/18
to Flutter Dev
OK. I don't know what is happening, but I'm developing an app that uses Firestore. When I run the iOS app on my local it works OK, but I do get this message:
"4.8.1 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8" which is similar to your app crashing message.

Not sure why, but continue to dig in.

On Wednesday, April 11, 2018 at 7:43:28 PM UTC-7, William Kethman wrote:
It runs in local setup and in release mode, just not on app store
On Mon, Apr 9, 2018 at 2:45 PM, <laki...@gmail.com> wrote:
Does it run from your local set up in release mode, i.e. not debug?

--
You received this message because you are subscribed to a topic in the Google Groups "Flutter Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/flutter-dev/bJa9DV_tvbE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flutter-dev...@googlegroups.com.

Eric Seidel

unread,
Apr 11, 2018, 11:52:36 PM4/11/18
to laki...@gmail.com, Collin Jackson, Flutter Dev
jackson@ would know.

You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

Mikkel Ravn

unread,
Apr 12, 2018, 4:04:52 AM4/12/18
to Eric Seidel, laki...@gmail.com, Collin Jackson, Flutter Dev
Please see https://github.com/flutter/flutter/issues/16036#issuecomment-380712094 for how to resolve the Termination Description: DYLD, Symbol not found: _OBJC_CLASS_$_FIRApp problem.
--
Mikkel Nygaard Ravn
Software Engineer

Collin Jackson

unread,
Apr 12, 2018, 5:26:45 PM4/12/18
to Eric Seidel, laki...@gmail.com, Flutter Dev
You can safely ignore the "The default Firebase app has not yet been configured." warning. I've filed flutter/flutter#16534 to improve this.


jackson@ would know.


To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev+unsubscribe@googlegroups.com.

laki...@gmail.com

unread,
Apr 12, 2018, 9:24:23 PM4/12/18
to Flutter Dev
Thanks @collinjackson and @mravn-google, I upgraded to CocoaPods 1.5.0 and subsequently upgraded my firebase dependencies & Podfile as recommended. My app is running OK, but still receive message "The default Firebase app has not yet been configured.", but sounds like that will be addressed. I'm curious if @wkethman can successfully re-release his app to App Store with these upgrades.
jackson@ would know.


To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages