Flutter iOS throws Exception Type: EXC_CRASH (SIGABRT) EXC_CORPSE_NOTIFY when launching app in release mode

Viewed 975

I'm trying to find the cause of this problem for 3 days now, any help much appreciated!

I'm not able to reproduce this error on any simulator running in debug mode only in release mode (currently on physical devices). I'm signing the app before the release with an AdHoc provisioning profile created in Apple Dev Account.

When trying to run the app on a device I'm getting the following error:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY

I'm not any iOS developer unfortunately so I don't quite get the problem here;/
The full log is here

2 Answers

Ok, after a log time of reverting all my steps since last time I managed to install and run my app on a physical device I figured out the reason.

Two weeks ago, when I installed the latest XCode version (11.4) I also upgraded locally to Flutter 1.15.7. There is a migration that needs to be done to have the app being able to run on a simulator or a physical app. All is described here: https://flutter.dev/docs/development/ios-project-migration#sidenav-1

Probably when building in AppCenter I was using the Stable version of Flutter. The problem got resolved when I moved to CodeMagic and selected the v1.15.17 version of flutter which got me thinking.

So anyone that has this issue and lately upgraded either Flutter or XCode.

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY

Triple check if you are on the same setup on your CICD machine!

In my case it was due to google_mobile_ads dependency. When I remove it, the error goes away.

Btw, the very same error as OP tells about:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY

Turns out that I forgot to specify GADApplicationIdentifier in Info.plist

Related