Self-signing Code in XCode for IPhone?

旧街凉风 提交于 2019-12-19 11:53:44

问题


How can I self-sign an iPhone application using XCode? I have done the following:

  1. Created a cert following these instructions
  2. Modified my /Developer/Platforms/iPhoneOS.platform/Info.plist to include the two keys

    <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISIONING_PROFILE_REQUIRED</key> <string>NO</string>

  3. I have changed the info.plist associated with the project to say

    <key>SignerIdentity</key> <string>Apple iPhone OS Application Signing</string>

  4. 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

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