问题描述
我在存档验证期间收到消息。我已经尝试了其他问题的大部分解决方案。但仍然失败。 (当我上次在xcode 4.02中提交它时还可以,然后我被拒绝了。我编辑了一些图像和.m文件(不是项目设置)。
我的项目构建设置:
架构->标准(armv7)-$(ARCH_STANDARD_32_BIT)
基本SDK->最新ios(ios 5.0)
有效架构armv6 armv7 arvm7f armv7k
仅构建活动架构->否
ios部署目标:ios3.0
我已尝试重新安装xcode并确保已检查unix 5次。
我已尝试安装回xcode 4.02,但与xcode 4.2相同的消息
我尝试重新安装cocos2d
我试图将llvm / gcc设置为仅gcc
警告信息1:
项目清理过时的设置应进行更新。
当我单击它时。一种是将gcc设置为llve-gcc,另一种是\'针对缺少的函数原型启用编译器警告。我点击了取消
警告讯息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\").
警告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)
组织者中的错误消息是:
档案无效。 /var/folders/H5/.../app.ipa不存在。
解决方法
我实际上不知道为什么,但是现在可以了。我重新安装回xcode 4.0.2。然后重新创建一个项目,并复制到我所有的课程中。我认为问题是\'Architectures-> standard(armv7)\',在xcode 4.0.2中,架构是标准的armv6 / armv7,也许是因为cocos2d与我不知道的新版本兼容。无论如何,如果遇到相同的问题,只需安装回非beta版本并创建一个新项目(因为\'Architecture \'的原始设置将被修改为\'armv7 standard \'。)希望它会有所帮助。
, 当我更新到Xcode 4.2时,这发生在我身上。我回到最新的非Beta Xcode版本进行修复。关键是,在卸载Xcode时,必须在终端中通过以下命令进行操作:
sudo /Developer/Library/uninstall-devtools –mode=all
这需要几分钟。但是,完成后,请安装非Beta Xcode(当前为4.0.2),然后在使用前重新启动。为我工作。
, 从受支持的平台中删除iphoneossimulator以进行分发/发行版本配置。那是如果您有它。
您无法分发它,仅用于调试配置。
检查以下图像的分发配置(忽略发行配置)。