How to make an IPA on XCode 4.3?

北慕城南 提交于 2019-11-27 18:03:11

Here's how you can make an IPA in XCode 4.3:

To Disable Code Signing:

  1. Go to /Applications.
  2. Right click on XCode and select 'Show Package Contents'.
  3. Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/SDKSettings.plist to your desktop. (Make sure to actually copy and paste. No drag and drop)
  4. Open it and under DefaultProperties set CODE_SIGNING_REQUIRED to NO.
  5. Copy it back and replace the original file.
  6. Restart XCode.
  7. Open your project.
  8. In Project Navigator select your project and open Build Settings section of your porject (and not any particular target)
  9. Under Code Signing find Code Signing Identity and for both Debug and Release modes set Any iOS SKD to Don't Code Sign.
  10. Now you should be able to build your project without any errors.

To make an IPA:

  1. In 'Project Navigator' select Products
  2. Right click on [NameOfYourProject].app and select 'Show in Finder'.
  3. Create a folder and name it Payload
  4. Move [NameOfYourProject].app to Payload.
  5. Compress Payload and rename it to [NameOfYourProject].ipa

You should be able to get an IPA by clicking 'Distribute...' in Organizer->Archives, and choosing to 'Save for Enterprise or Ad-Hoc Deployment'.

Beginning iOs 5.1 Apple moved their files from /Developer/... to XCode->Show Package Content In order to export codesign_allocate correctly run this line on your Mac terminal : export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate

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