添加新的 iPad 目标后创建 AdHoc 时 iPhone 应用程序出现问题
在 x-code4 中我想制作 Adhoc 版本(项目的 .ipa 文件) 但在构建和存档之后,当我在管理器中按“共享”时 它以前没有显示选择 ipa 包的选项
,当目标仅为 ipohne
时,它显示选项
在其他项目中我可以选择它,如下所示
那么可能是什么问题?我应该怎么做才能获得制作 ipa 文件的选项?
(我还将 coreplot-cocaTouch.xcodeproject 添加到我的应用程序中,因此可能会产生问题?
在我的项目中,iPhone 和 iPad 有不同的 xib 文件,因此单个项目中有两个目标 )
In x-code4 I want to make Adhoc version (.ipa file of the project)
but after build and archive when i press "Share" in organizer
it is not showing option for selecting ipa Package
previouly it was showing option when target was only ipohne
in other project i am able to select it as shown below
so what could be the problem ? what should I do to get option for making ipa file?
(i have also included coreplot-cocaTouch.xcodeproject to my app so it may creating problem?
in my project there are different xib fles for iphone and ipad so there are two targets in single project
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于所有可能遇到此问题的人,以下是我在成功将 CorePlot 0.9 添加到我的项目后如何创建 .ipa 文件的逐步说明:
1) 在项目导航器中单击您的 CorePlot-CocoaTouch.xcodeproj(您已将新项目和目标添加到您的主项目中,并且您需要禁用它安装)
2)在“项目”设置中,单击“构建设置”选项卡,滚动到“部署”部分并找到“安装目录”。删除该字段中的所有内容(不要在主项目中执行任何操作,仅在 CorePlot 项目中执行)。
3) 在安装目录部分正下方的“跳过安装”部分中,将“否”设置为“是”(确保所有构建类型都设置为“是”)。
4) 现在对所有“目标”(CorePlot-CocoaTouch、文档和通用库)执行相同的操作。
5) 单击“CorePlot-CocoaTouch”目标,然后单击“Build Phases”选项卡。您将看到一个名为“复制标题”的部分。将“Public”和“Private”部分中的所有标题移至“Project”部分(只需突出显示/拖/放所有 .h 文件到“Project”部分)
6) 确保您已设置为针对 iOS 设备构建,然后在屏幕顶部的 XCode 选项中,选择 Product >档案。
7) 打开窗口>管理器并选择“存档”选项卡。一旦完成构建,您将在那里看到您的应用程序。选择存档,然后单击“共享”按钮。您将看到一个选择“iOS AppStore Package (.ipa)”的选项。单击“下一步”,将文件命名为“YourAppName.ipa”,然后选择文件在计算机上的保存位置。
当您使用 CorePlot 框架时,这应该负责创建 ipa。
For all those who might be having problems with this, here is a step by step of how I created an .ipa file after successfully adding CorePlot 0.9 to my project:
1) Click on your CorePlot-CocoaTouch.xcodeproj in the Project Navigator (you have added a new project and targets to your main project, and you need to disable it from installing)
2) While in the "PROJECT" settings, click on the "Build Settings" tab, scroll to the "Deployment" section and find "Instalation Directory." Delete whatever you have in that field (do not do any of this in your main project, only in your CorePlot project).
3) In the "Skip Install" section right below the Installation Directory section, set the "No" to "Yes" (make sure all build types are set to "Yes").
4) Now do all the same to all of the "TARGETS" (CorePlot-CocoaTouch, Documentation, and Universal Library).
5) Click on the "CorePlot-CocoaTouch" target, then click on the "Build Phases" tab. You will see a section called "Copy Headers." Move all the headers in "Public" and "Private" sections to the "Project" section (just highlight/drag/drop all the .h files into the Project section)
6) Make sure you are set to build for iOS Device, then in the XCode options at the top of your screen, select Product > Archive.
7) Open Window > Organizer and select the "Archives" tab. You will see your app there once it has finished building. Select the archive, then click on the "Share" button. You will see an option selected "iOS AppStore Package (.ipa)." Click "Next," name your file "YourAppName.ipa" and choose where the file will be saved on your computer.
That should take care of creating an ipa when you are using the CorePlot framework.
我认为这是这个问题的重复: XCode4 + iOS 4.3:“该存档类型不存在打包程序”
您可能需要将静态库更改为“跳过安装”。
I think this is a duplicate of this question: XCode4 + iOS 4.3: "No Packager exists for the type of archive"
You probably need to change your static libraries to "Skip Install".