Enterprise (in-house) Swift application quits on launch on iOS9

橙三吉。 提交于 2019-11-28 19:44:00

I solved this by wiping out the provisioning profiles on my device. Go to your Xocde -> Devices -> Gear icon -> Show provisioning profiles and remove them one by one, until you remove all of them.

I don't know what iOS 9 does with Enterprise signed app, but it seems that it attempts to verify something (by going through all of your provisioning profiles) and failed a lot upon first launch. This shouldn't happen with App Store builds.

Hope that helps.

The answer of @shinichi is correct. However, I needed to delete ALL enterprise provisioning profiles and do a hard reset of the device. After that there were no problems.

NOTE: If you have many EP profiles, you can delete them faster by pressing the UP button on your keyboard and positioning your mouse on the "-" button in Xcode and clicked and pressing. I know this is a stupid solution, but I had about 100 EP profiles, deleting them by clicking with the mouse would have driven me crazy.

Hope Apple fixes this.

Xcode 7: Xcode - >devices -> ctrl+click your device -> Show provisioning profiles.

I tried removing the provisioning profiles as suggested by the accepted answer but there were none!

My app worked for a couple hours and then all of a sudden stopped working with the same issue as described in the question.

The solution was to open Keychain Access and search for certificates with my developer name - sure enough, there was an old one that had expired and for some reason it was getting picked up for signing. After I deleted that expired certificate and restarted my dev environment the app started working once again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!