问题
How can I self-sign an iPhone application using XCode? I have done the following:
- Created a cert following these instructions
Modified my
/Developer/Platforms/iPhoneOS.platform/Info.plistto include the two keys<key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</string>
I have changed the info.plist associated with the project to say
<key>SignerIdentity</key> <string>Apple iPhone OS Application Signing</string>
I have changed the project properties to refer to the signing authority with the name iPhone Developer, which is the name of my certificate.
The error is currently a valid provisioning profile matching the applications identifier... cannot be found.
Note: I am pretty sure that this can be done without a $99 cert from Apple. Also, I am not trying to build for the simulator but rather for the iPhone/iPod Touch itself.
Any insight would be appreciated.
Perhaps Relevant link.
回答1:
Have you tried http://iphonedevwiki.net/index.php/Xcode#Developing_without_Provisioning_Profile? The link you've provided only works for SDK 2.x.
回答2:
The error message is because you do not have the proper provisioning profile through the developer site of Apple, which follows from paying the $99 yearly. It may somehow work on a jail broken device which is not how Xcode is designed to be used.
来源:https://stackoverflow.com/questions/2357731/self-signing-code-in-xcode-for-iphone