13

I have a Mac OS X Lion setup with XCode 4.3. I am not a registered Apple developer.

I told, via the plist files: /Applications/Xcode.App/Contents/Developer/Platforms/iPhoneOS.platform/Info.plist and /Applications/Xcode.App/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/SDKSettings.plist, XCode not to require codesigning.

I then compiled my project, just a basic iPhone app project, it ran well in simulator. I could build and archive it, then sign it using a self-created certificate and the archive appeared in the Organizer.

Nothing strange for the moment, but there comes the problem: I have no "Share" button in the organizer. I absolutely need to make an IPA file out of my project if I want it to work under an iPhone as it won't accept xcarchive files. I only get the "Validate" and "Distribute" buttons which both require to be a registered Apple developer. But, no "Share" button which enables building an IPA... for free.

I have gone through XCode settings but nothing seemed to help me there. Even the documentation says a Share button is available in XCode 4.3, so my question is: Why don't I get the possibility to make an IPA? IS there any workaround to get this Share button or make an IPA out of the xcarchive via any command line or whatever?

4

3 回答 3

37

以下是在 XCode 4.3 中制作 IPA 的方法:

要禁用代码签名:

  1. /Applications
  2. 右键单击 XCode 并选择“显示包内容”。
  3. 复制Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/SDKSettings.plist到您的桌面。(确保实际复制和粘贴。不要拖放)
  4. 打开它并DefaultProperties设置CODE_SIGNING_REQUIREDNO.
  5. 将其复制回来并替换原始文件。
  6. 重新启动 XCode。
  7. 打开你的项目。
  8. 在 Project Navigator 中选择您的项目并打开项目Build Settings的部分(而不是任何特定目标)
  9. Code SigningfindCode Signing Identity和两者下DebugRelease模式设置Any iOS SKDDon't Code Sign
  10. 现在您应该能够构建您的项目而不会出现任何错误。

要制作 IPA:

  1. 在“项目导航器”中选择产品
  2. 右键单击[NameOfYourProject].app并选择“在 Finder 中显示”。
  3. 创建一个文件夹并命名Payload
  4. 移至。[NameOfYourProject].app_Payload
  5. 压缩Payload并重命名为[NameOfYourProject].ipa
于 2012-04-16T09:15:42.197 回答
13

您应该能够通过单击管理器->存档中的“分发...”并选择“保存用于企业或临时部署”来获得 IPA。

于 2012-02-21T01:20:20.933 回答
0

从 iOs 5.1 开始,Apple 将他们的文件从 /Developer/... 移动到 XCode->Show Package Content 为了导出 codesign_allocate 在您的 Mac 终端上正确运行此行:export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Platforms /iPhoneOS.platform/Developer/usr/bin/codesign_allocate

于 2012-08-03T03:12:02.817 回答