Xcode archive .ipa does not run in iPhone

I successfully archived an app with Xcode 14.3.1. I air dropped it onto my iPhone 13. But when I tried to run the app by tapping the app icon the opening screen just flashes but does not allow to run the app. The same thing happens on my I pad. Any suggestions how to locate the reason for this behavior will be appreciated.

Answered by wlionel in 811447022

When I use an older archive distribution file the problem was not there. So I suspect that some changes were made when I updated Xcode then ran the archive. Don't know.

I'll try the suggestions.

Thanks for the post. If you notice the app opening and closing, it indicates that the app is crashing at startup.

Crashing at startup can be challenging to diagnose, but debugging the app on the actual device where the issue occurs is a great way to investigate. Here are a couple of ways to do this in Xcode:

  1. Debugging on the Device: Connect your device to your computer using USB, open Xcode, and run the app. Immediately pause the app on startup. This will allow you to step through the code and identify the problematic lines.

  2. Analyzing Crash Files: Xcode automatically generates crash files (ips files) from your device under the “Crashes” section in the Organizer. Analyzing these files can help pinpoint the exact line of code causing the crash. You can also retrieve the Sysdiagnose from the device.

You can always post the raw crash file here or provide the app to reproduce the crash.

Accepted Answer

When I use an older archive distribution file the problem was not there. So I suspect that some changes were made when I updated Xcode then ran the archive. Don't know.

I'll try the suggestions.

Thanks to DTS Engineer for professional advise.

Xcode archive .ipa does not run in iPhone
 
 
Q