Cant deploy a release version with developer profile

删除回忆录丶 提交于 2019-12-11 16:20:04

问题


I cant make a release build which is signed with my developer profile. I duplicated the release config and changed the signing cert to my developer profile but when it builds it signs with the App Store cert.

So I get the the standard dialog telling me that the app cant be installed on the device because it doesn't have the necessary profile (App Store Profile).

Id like to able to test the release builds before sending out for review but im wondering why I cant and if this is an Xcode bug. Im using XCode 3.2.5 . So far I have got away with just testing the debug builds but I'm sure I am going to get bitten on the a** some time.


回答1:


You could create a Distribution Ad Hoc provisioning profile (as opposed to a Development Ad Hoc profile). This way, you can test that code signing with your Distribution certificate works, and install on your device.

Then, simply duplicate the build configuration you just created, and set to your App Store Provisioning Profile, and you should be good.




回答2:


You can't install an app signed with your Distribution profile on your device.

What you should do is to test your Release build using your Developer profile, play with optimizations, etc., then make an exact copy of your Release Build Settings for the Distribution build, and just change the codesigning certificate only. Thus the binaries should then be identical to those you've tested; only the codesigning stuff inside the app bundle should differ.



来源:https://stackoverflow.com/questions/4288964/cant-deploy-a-release-version-with-developer-profile

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