一点背景;
我有一个使用 XCode 4.6.3 创建的项目。将 4.6.3 升级到 XCode 5 后,我在使用该项目(iOS7 界面等)时遇到问题,因此决定从 Apple 开发者网站下载独立的 XCode 4.6.3。下载后,我将 4.6.3 复制到 ./Applications/Xcode4 中,而 XCode5 仍位于 ./Applications/XCode 中。
问题;
我的项目像以前一样在 4.6.3 中打开并运行良好,在模拟器和我的设备上运行良好,没有任何问题。但是,在完成许多成功的“存档”之后(在更新 XCode 之前),当我现在存档应用程序以进行临时分发时,我收到以下警告:
Validate /Users/ross/Library/Developer/Xcode/DerivedData/nandf-hkfbmrneltwmpuedrwmfqfimcqbh/Build/Intermediates/ArchiveIntermediates/nandf/InstallationBuildProductsLocation/Applications/nandf.app
cd /Users/ross/Documents/nandf
setenv PATH "/Applications/Xcode4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode4.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PRODUCT_TYPE com.apple.product-type.application
/Applications/Xcode4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation /Users/ross/Library/Developer/Xcode/DerivedData/nandf-hkfbmrneltwmpuedrwmfqfimcqbh/Build/Intermediates/ArchiveIntermediates/nandf/InstallationBuildProductsLocation/Applications/nandf.app
warning: Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate. (-19011)Executable=/Users/ross/Library/Developer/Xcode/DerivedData/nandf-hkfbmrneltwmpuedrwmfqfimcqbh/Build/Intermediates/ArchiveIntermediates/nandf/InstallationBuildProductsLocation/Applications/nandf.app/nandfcodesign_wrapper-4.1: using Apple CA for profile evaluation/Users/ross/Library/Developer/Xcode/DerivedData/nandf-hkfbmrneltwmpuedrwmfqfimcqbh/Build/Intermediates/ArchiveIntermediates/nandf/InstallationBuildProductsLocation/Applications/nandf.app: valid on disk/Users/ross/Library/Developer/Xcode/DerivedData/nandf-hkfbmrneltwmpuedrwmfqfimcqbh/Build/Intermediates/ArchiveIntermediates/nandf/InstallationBuildProductsLocation/Applications/nandf.app: satisfies its Designated Requirementtest-requirement: code failed to satisfy specified code requirement(s)codesign_wrapper-4.1: failed to execute codesign(1) - (null
已经检查过;
我的配置文件在 XCode 管理器中显示为有效,并且为项目和目标代码签名标识选择了适当的配置文件。
项目 'Validate Built Project' 设置为 No(调试)和 Yes(发布),Target 也是如此。
非常感谢您对原因/解决方案的任何进一步了解。