为什么 xcode 存档成功但创建了一个空的 .xcarchive 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6716756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why does xcode archive succeed but create an empty .xcarchive file?
提问by Azeworai
Background
背景
I have an application I'm trying to archive and submit to the app store for approval. Part of the process requires the archive to be prepared and loaded using application loader. I used product-> archive and it prompts archive succeeded but it does not appear on the Organizer -> Archive tab.
我有一个应用程序,我正在尝试存档并提交到应用程序商店以供批准。该过程的一部分需要使用应用程序加载器准备和加载存档。我使用了产品-> 存档,它提示存档成功,但它没有出现在管理器-> 存档选项卡上。
Detail of Project build
项目建设细节
1 app target, "AppName"
1 个应用目标,“AppName”
1 static library, cocos2d libraries (cocos2d v0.99.5-rc1)
1 个静态库,cocos2d 库(cocos2d v0.99.5-rc1)
Xcode Version 4.0.2
Xcode 4.0.2 版
First steps
第一步
Setting "Skip Install" to "No":
将“跳过安装”设置为“否”:
- Project
- AppName target
- cocos2d libraries
- 项目
- 应用名称目标
- cocos2d 库
Setting skip install on the three allows me the archive to be built and show up(non-empty xcarchive) on the organizer. However, when I try to validate, it'll prompt:
在这三个上设置跳过安装允许我构建存档并在组织者上显示(非空 xcarchive)。但是,当我尝试验证时,它会提示:
"AppName" does not contain a single–bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single–bundle application.
“AppName”不包含单个捆绑应用程序或包含多个产品。请选择另一个存档,或调整您的方案以创建单包应用程序。
I checked that the archive package contents include the cocos2d libraries within a directory "Products". According to some posts and the cocos2d forum, we're not supposed to submit that as part of the binary for approval.
我检查了存档包内容是否包含目录“Products”中的 cocos2d 库。根据一些帖子和 cocos2d 论坛,我们不应该将其作为二进制文件的一部分提交以供批准。
Steps taken to the Zero KB .xcarchive
零 KB .xcarchive 所采取的步骤
Since the static cocos2d libraries library should not to be included, I've changed the cocos2d libraries target to have skip install: "Yes". Now, if I archive the project it prompts build succeeded but it creates an empty .xcarchive file that cannot be seen on the organizer->archives tab.
由于不应包含静态 cocos2d 库,我已将 cocos2d 库目标更改为跳过安装:“是”。现在,如果我归档项目,它会提示构建成功,但它会创建一个空的 .xcarchive 文件,该文件在组织者-> 归档选项卡上看不到。
回答by Azeworai
I have the solution to my problem and if anyone else is facing the same problem here are the steps i took to fix the problem.
我有我的问题的解决方案,如果其他人面临同样的问题,这里是我解决问题的步骤。
cocos2d library
cocos2d 库
-Set the skip install to YES for all configurations in your cocos2d library.
- 将 cocos2d 库中所有配置的跳过安装设置为 YES。
-Set the code signing identity to Don't code sign for all configurations. Static libraries are not code signed.
- 将代码签名身份设置为不对所有配置进行代码签名。静态库没有代码签名。
-Update the installation directory to /usr/local/lib.
-将安装目录更新为/usr/local/lib。
app library
应用程序库
-Update the installation build products location to /tmp/$(PROJECT_NAME).dst
- 将安装构建产品位置更新为 /tmp/$(PROJECT_NAME).dst
-Update the installation directory to $(LOCAL_APPS_DIR) (/Applications).
- 将安装目录更新为 $(LOCAL_APPS_DIR) (/Applications)。
-Update the code signing identity section.
- 更新代码签名身份部分。