问题
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