Archiving iOS application makes app crash on startup

I have been developing an app for a long time and I've been archiving it perfectly and users been able to install the ipa file on their iOS devices, but lately when I publish my app it crashes on start up and it can not finish function "didFinishLaunchingWithOptions". when I distribute earlier versions which I have their archive file, they are ok, but when I archive the earlier version it crashes too on the devices. I have to add that I run the app perfectly fine on Xcode run and it has no error nor crash. I believe something is wrong with archiving my application and it's almost a week that I'm stuck with it!!

any help is appreciated :)

xcode 13, macos :11.6, ios:15.0.1

There are two common problems here:

  • Debug vs Release build

  • Development vs Distribution signing

You can tease these apart using the organizer:

  1. Build an archive of your app.

  2. Select it in the organizer.

  3. Click the Distribution App button.

  4. Select Development and click Next.

  5. Continue with that workflow.

  6. That results in an .ipa for your app. Install that on a device using the Finder.

Does this app crash?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I followed the steps as you said and installed the development distribution on my device but it crashed again! As I earlier mentioned, the distribution methods are file and crash free because i can distribute my previous versions fine, but when I archive them now and distribute them and then installing them on my devices, they even crash!

I followed the steps as you said and installed the development distribution on my device but it crashed again!

It sounds like you have a bug that only manifests in release builds. This is not unusual.

If you launch the app from the Home screen then it should generate a crash report. Please post that here.

See Posting a Crash Report for info on how to do that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I couldn't upload the crash log here due to character limitations, so I uploaded the crash log to my question on This post on StackOverFlow.

I couldn't upload the crash log here due to character limitations

Did you try uploading it as an attachment? Because I tried just that (see the post above) using my personal account (so there’s no Apple secret sauce) and it worked just fine.

Regardless, I don’t think there’s much I can do to help you with this. Your crash report has been truncated (note the absence of a Binary Images section) which makes it impossible to symbolicate. Moreover, based on the backtraces in threads 5 and 9 I suspect that you’re using a third-party crash reporter and, as I explain in this post, those are not to be trusted.

I recommend that you remove your third-party crash reporter and try again.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Archiving iOS application makes app crash on startup
 
 
Q