问题描述
我已经准备好发布我的应用程序,但是我无法创建需要的.ipa.
I have my app ready to ship, and I can not create the .ipa I need to do so.
我在一个很小的例子中重现了我的问题.
I have reproduced my problem in a very small example.
1)创建一个新项目(我使用了Nav Bar应用程序).2)建立存档3)分享. .ipa在指定位置创建.
1) Create a new project (I used a Nav Bar application).2) Build for Archive3) Share. .ipa creates at specified location.
4)下载/安装核心图( http://code.google.com/p/core-plot/downloads/detail?name=CorePlotInstaller_0.2.2.zip&can=2&q= )
4) download / install core-plot ( http://code.google.com/p/core-plot/downloads/detail?name=CorePlotInstaller_0.2.2.zip&can=2&q= )
5)使用方法2添加库
5) Use method 2 for adding library
5a)将CorePlotSDK目录复制到〜/Library/SDKs/
5a) Copy the CorePlotSDK directory to ~/Library/SDKs/
5b)添加到项目的.PCH文件中:#import
5b) Add to your project's .PCH file: #import
5c)打开项目->编辑项目设置,然后针对所有配置:
5c) Open Project -> Edit Project Settings and for All Configurations:
5c1)添加到其他SDK:$ HOME/Library/SDKs/CorePlotSDK/$ {PLATFORM_NAME} .sdk
5c1)Add to Additional SDKS: $HOME/Library/SDKs/CorePlotSDK/${PLATFORM_NAME}.sdk
5c2)添加到其他链接器标志:-ObjC -all_load -lCorePlot
5c2) Add to Other Linker Flags: -ObjC -all_load -lCorePlot
5d)将QuartzCore框架添加到项目中.
5d) Add the QuartzCore framework to the project.
6)清洁项目7)建立存档8)分享(.ipa)=>操作无法完成.没有这样的文件或目录"
6) Clean project7) Build for Archive8) Share (.ipa) => "The operation couldn’t be completed. No such file or directory"
推荐答案
对于所有可能对此有疑问的人,这里是逐步介绍如何在成功将CorePlot 0.9添加到我的项目中之后创建.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)在项目导航器中单击CorePlot-CocoaTouch.xcodeproj(您已经在主项目中添加了新项目和目标,并且需要禁用其安装)
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)在项目"设置中,单击构建设置"选项卡,滚动到部署"部分,然后找到安装目录".删除该字段中的所有内容(不要在主项目中执行任何操作,仅在CorePlot项目中执行此操作).
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)在安装目录"部分下面的跳过安装"部分,将否"设置为是"(确保所有构建类型均设置为是").
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)现在对所有目标"(CorePlot-CocoaTouch,文档和通用库)执行相同的操作.
4) Now do all the same to all of the "TARGETS" (CorePlot-CocoaTouch, Documentation, and Universal Library).
5)单击"CorePlot-CocoaTouch"目标,然后单击构建阶段"选项卡.您将看到一个名为复制标题"的部分.将公共"和私人"部分中的所有标题移到项目"部分(只需将所有.h文件高亮显示/拖放/拖放到项目"部分中)
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)确保已设置要针对iOS设备构建,然后在屏幕顶部的XCode选项中,选择产品">存档".
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)打开窗口>管理器,然后选择归档"选项卡.完成构建后,您将在其中看到您的应用程序.选择档案,然后单击共享"按钮.您将看到一个选择的选项"iOS AppStore软件包(.ipa)".单击下一步",将文件命名为"YourAppName.ipa",然后选择文件在计算机上的保存位置.
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.
使用CorePlot框架时,应该注意创建一个ipa.
That should take care of creating an ipa when you are using the CorePlot framework.
这篇关于xCode 4“未找到文件"使用核心图库创建.ipa时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!