App Crashes with Expired Provisioning Profile
| Originator: | justatheory | ||
| Number: | rdar://20807572 | Date Originated: | 2015-05-04 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 8 |
| Classification: | Reproducible: | Always |
Summary: I maintain a simple app where I work that we distribute with an Enterprise Provisioning profile. Last week it started crashing on launch. No error message or any other information. Just wouldn't start. Today I plugged my phone into Xcode to look at the logs, where I found the problem: Our enterprise provisioning profile had expired. It would be super helpful if a useful error message could be displayed in such a situation. A simple message to the effect that the provisioning profile has expired would be sufficient. Otherwise, I don't suppose there's a way to create a profile that lasts any longer than a year, is there? Steps to Reproduce: * Archive an app with an expired enterprise provisioning profile. * Install it on your iOS device * Launch it Expected Results: The app refuses to launch, provides an error message explaining to the user why it won't launch. Actual Results: The app start screen appears then disappears with no explanation. It looks like a serious startup crash. Version: iOS 8.x Notes: Configuration: iPhone, iPad Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
David Wheeler 17-Jun-2015 05:02 PM
There wer no crash logs because it wasn't getting that far. The OS was killing the app before it started because the provisioning profile had expired.
Apple Developer Relations 17-Jun-2015 01:30 PM
Engineering has requested the following information in order to further investigate this issue:
--- Crash Logs Instructions --- https://developer.apple.com/bug-reporting/ios/crash/
Crash Logs are usually saved to the device when an application unexpectedly quits. To retrieve the crash log, connect your device to your computer. iTunes should open automatically and copy the crash log to your computer. If iTunes does not copy the crash log, select your device in iTunes and click "Sync."
The crash log can then be found in one of the following locations, depending on which platform you use and what operating system you're using on your host computer:
• Mac OS X:
~/Library/Logs/CrashReporter/MobileDevice//
Note: "~/" actually means /Users/[Your User Name]/Library/Logs/... not the root path /Library/Logs/.
• Windows 8:
C:Users[Your User Name]AppDataRoamingApple ComputerLogsCrashReporterMobileDevice<device-name>\
Note: The AppData folder is hidden by default. Click on the View menu item in a Windows navigation window and check the "Hidden items" checkbox and the AppData folder will appear in the list of folders under C:Users[Your User Name].
• Windows Vista:
C:Users<Your User Name>AppDataRoamingApple ComputerLogsCrashReporterMobileDevice\
Note: The "AppData" folder is hidden by default. Choose Organize > Folder and Search Options the file browser window, then click the View tab and change the "Hidden files and folders" option to "Show hidden files and folders."
• Windows XP:
C:Documents and Settings<Your User Name>Application DataApple ComputerLogsCrashReporterMobileDevice
Note: The "Application Data" folder is hidden by default. Choose Tools > Folder Options in the file browser window, then click the View tab and change the "Hidden files and folders" option to "Show hidden files and folders."