组织者中的 xcode 无效存档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6334072/
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
xcode invalid archive in organizer
提问by OMGPOP
i get message during archive validation. i've tried most of solutions from other questions. but still failed. (It was ok when i submit it last time in xcode 4.02, then i get rejected. i edited some image and .m file(not project settings).
我在存档验证期间收到消息。我已经尝试了其他问题的大部分解决方案。但还是失败了。(当我上次在 xcode 4.02 中提交时没问题,然后我被拒绝了。我编辑了一些图像和 .m 文件(不是项目设置)。
my project Build settings:
Architectures->standard (armv7) - $(ARCH_STANDARD_32_BIT)
Base sdk->Latest ios(ios 5.0)
valid Architectures armv6 armv7 arvm7f armv7k
Build active architecture only->no
ios deployment target: ios3.0
我的项目构建设置:Architectures->standard (armv7) - $(ARCH_STANDARD_32_BIT) Base sdk->Latest ios(ios 5.0)
valid Architectures armv6 armv7 arvm7f armv7k
Build active architecture only- >no
ios deployment target: ios3.0
- i've tried reinstalling xcode and make sure unix is checked, 5 times.
- i've tried install back to xcode 4.02, but the same message as xcode 4.2
- i've tried reinstall cocos2d
- i've tried to set the llvm/gcc to gcc only
- 我已经尝试重新安装 xcode 并确保检查 unix 5 次。
- 我试过安装回 xcode 4.02,但与 xcode 4.2 相同的消息
- 我试过重新安装 cocos2d
- 我试图将 llvm/gcc 设置为仅 gcc
warning message 1: Project Clean-Up Outdated settings should be updated. when i click it. one is to set gcc to llve-gcc, another is to 'Enable compiler warning for missing Function Prototypes. ' I clicked cancel
警告消息 1:应更新项目清理过时的设置。当我点击它时。一种是将 gcc 设置为 llve-gcc,另一种是“启用缺少函数原型的编译器警告”。' 我点击了取消
warning message 2:
警告信息 2:
Check dependencies
[BWARN]warning: iPhone apps with a deployment target lower than 4.3 should include an armv6 architecture (current IPHONEOS_DEPLOYMENT_TARGET = "4.1", ARCHS = "armv7").
warning 3:
警告 3:
Validate /Users/lifesucks/Library/Developer/Xcode/DerivedData/FishvsBirdsLite-frctqlpldaogcjebgvxkvvmsehie/ArchiveIntermediates/FishvsBirdsLite/InstallationBuildProductsLocation/Applications/FishvsBirdsLite.app
cd "/Users/lifesucks/my app/Fish vs Birds/FishvsBirdsLite"
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/lifesucks/Library/Developer/Xcode/DerivedData/FishvsBirdsLite-frctqlpldaogcjebgvxkvvmsehie/ArchiveIntermediates/FishvsBirdsLite/InstallationBuildProductsLocation/Applications/FishvsBirdsLite.app
2011-06-14 01:30:10.948 Validation[8609:607] *** Warning: Defaulting to the standard codesign tool
warning: iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033)
Unable to validate your application. - (null)
warning: There is no codesign_wrapper executable. Please reinstall the Xcode developer tools. (-19058)
Unable to validate your application. - (null)
the error message in organizer is:
管理器中的错误消息是:
the archive is invalid. /var/folders/H5/.../app.ipa does not exist.
存档无效。/var/folders/H5/.../app.ipa 不存在。
采纳答案by OMGPOP
I actually don't know why, but it works now. I reinstall back to xcode 4.0.2. then recreated a project, copied over all my classes. i assume that the problem is 'Architectures->standard (armv7)', in xcode 4.0.2 the Architectures is standard armv6/armv7, maybe it's because of cocos2d compatibility to the new version i don't know. anyway if you encounter the same problem, just install back to non-beta and create a new project (since the original setting of 'Architecture' will be modified to 'armv7 standard'. ) hope it helps.
我实际上不知道为什么,但它现在有效。我重新安装回 xcode 4.0.2。然后重新创建了一个项目,复制了我所有的课程。我假设问题是“架构->标准(armv7)”,在 xcode 4.0.2 中,架构是标准的 armv6/armv7,也许是因为 cocos2d 与我不知道的新版本的兼容性。无论如何,如果您遇到同样的问题,只需安装回非测试版并创建一个新项目(因为'架构'的原始设置将被修改为'armv7标准'。)希望它有所帮助。
回答by Steve N
This happened to me when I updated to Xcode 4.2. I went back to the latest non-Beta Xcode version to fix it. The key is, when uninstalling Xcode, you mustdo it via the following command in Terminal:
当我更新到 Xcode 4.2 时,这发生在我身上。我回到最新的非 Beta Xcode 版本来修复它。关键是,在卸载 Xcode 时,您必须通过终端中的以下命令来完成:
sudo /Developer/Library/uninstall-devtools –mode=all
This takes a few minutes. But when it's done, install the non-Beta Xcode (4.0.2 at this time), and then RESTART before using it. Worked for me.
这需要几分钟时间。但是当它完成时,安装非Beta Xcode(此时为4.0.2),然后在使用之前重新启动。对我来说有效。
回答by Anand
Remove iphoneossimulator from supported platforms for the distribution/release build configuration. That is if you have it. You cannot have that for distribution, it is only for your debug configurations.
从分发/发布构建配置的支持平台中删除 iphoneossimulator。也就是说,如果你拥有它。您不能将其用于分发,它仅适用于您的调试配置。
Check the image below for distribution configuration (ignore release config).
检查下面的图像以获取分发配置(忽略发布配置)。