Search code examples
iosxcodecode-signingprovisioning-profileenterprise-distribution

Enterprise Distributed iOS App Crashes Inconsistently Before Launch Finishes


I'm distributing an iPhone application with the Enterprise Program. Users download the app from a private location, and haven't reported any issues getting it installed. The app runs fine for most people.

However, some users complain that the app crashes before it finishes launching (they tap the icon, it zooms in to launch, and then immediately returns to the home screen). I've observed this in person on a couple of occasions. Deleting the app and reinstalling it does not correct the issue for most people.

This problem occurred on my own device once, but deleting and reinstalling the app corrected it in my case. No logs are left on the device referencing the issue.

At first, I was thinking the application:didFinishLaunchingWithOptions: was taking too long and preventing the application from loading properly, but I took all of the potentially blocking code out of that method, and backgrounded it with no effect.

I suspected it was a codesigning issue, so I rebuilt and provided a new copy with a new provisioning profile. This, too, had no effect.

Considering there are no logs (either reported by Google Analytics or directly on the devices), I am under the impression that the app is not starting at all, and that this is a problem with the way the application has been prepared.

Any insight would be appreciated!


Solution

  • It can't be a codeSigning issue since its getting installed properly, Are you performing any server requests in your didFinishLaunching or have you linked up some static Libraries they might be the reason for this issue, what ever be it, its occurring right from your AppDelegate within didFininshLaunchingWithOptions method