Xcode 4:创建IPA文件而不是.xcarchive [英] Xcode 4: create IPA file instead of .xcarchive

查看:70
本文介绍了Xcode 4:创建IPA文件而不是.xcarchive的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 3.2.5中,我使用Build and Archive创建一个IPA文件。在Xcode 4中,您可以使用Product - > Archive将应用程序归档到.xcarchive包中。

In Xcode 3.2.5 I use "Build And Archive" to create an IPA file. In Xcode 4 you can use "Product -> Archive" to archive an application in an .xcarchive bundle.

如何使用Xcode 4创建.ipa文件?

How can I create an .ipa file with Xcode 4?

推荐答案

创建IPA的方法与创建.xcarchive:Product - > Archive相同。存档操作完成后,转到管理器,选择存档,选择共享,然后在选择共享的内容和选项:窗格中将内容设置为iOS App Store Package(.ipa)和Identity to iPhone Distribution(其中)应该与项目的ad hoc / app store配置文件匹配。)

Creating an IPA is done along the same way as creating an .xcarchive: Product -> Archive. After the Archive operation completes, go to the Organizer, select your archive, select Share and in the "Select the content and options for sharing:" pane set Contents to "iOS App Store Package (.ipa) and Identity to iPhone Distribution (which should match your ad hoc/app store provisioning profile for the project).

可能会禁用iOS App Store Package(.ipa)选项。当你的构建产生多个目标时:例如,一个应用程序一个库。所有这些都最终存在于构建产品文件夹中,Xcode对于如何打包它们非常困惑两者进入.ipa文件,因此它只是禁用该选项。

Chances are the "iOS App Store Package (.ipa)" option may be disabled. This happens when your build produces more than a single target: say, an app and a library. All of them end up in the build products folder and Xcode gets naïvely confused about how to package them both into an .ipa file, so it merely disables the option.

解决此问题的方法如下:对每个目标进行构建设置,除了应用程序目标,并将Skip Install标志设置为YES。然后再次执行Product - > Archive tango并转到管理器选择新的存档。现在,当单击Share按钮时,.ip应该启用一个选项。

A way to solve this is as follows: go through build settings for each of the targets, except the application target, and set Skip Install flag to YES. Then do the Product -> Archive tango once again and go to the Organizer to select your new archive. Now, when clicking on the Share button, the .ipa option should be enabled.

我希望这会有所帮助。

这篇关于Xcode 4:创建IPA文件而不是.xcarchive的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆