由于权利无效,应用程序验证码验证失败

Chr*_*ris 6 validation xcode ios code-signing-entitlements icloud

我用谷歌搜索了这个废话,找不到任何解决方案.几个月前,当我更新其他应用程序时,它也发生在我身上.

我正在运行Xcode 4.2.

构建日志:

Validate /Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app
cd "/Users/chrismanahan/Downloads/ParseStarterProject 2"
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/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app

warning: Application failed codesign verification.  The signature was invalid, or it was not signed with an iPhone Distribution Certificate. (-19011)
Executable=/Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app/ThoughtSpreader
codesign_wrapper-0.7.10: using Apple CA for profile evaluation
Illegal entitlement key/value pair: com.apple.developer.ubiquity-kvstore-identifier, 894BCL9P67.com.manahan.thoughtspreader
Illegal entitlement key/value pair: com.apple.developer.ubiquity-container-identifiers, <CFArray 0x10d10aa10 [0x7fff7d96cea0]>{type = mutable-small, count = 1, values = (
0 : <CFString 0x10d10a860 [0x7fff7d96cea0]>{contents = "894BCL9P67.com.manahan.thoughtspreader"}
)}
AssertMacros: filter_entitlements(entitlements_whitelist, entitlements_requested, allowable_entitlements),  file: codesign_wrapper.c, line: 932
- (null)
Run Code Online (Sandbox Code Playgroud)

Ben*_*her 7

我打赌你的问题的关键(原谅双关语?)在这里:

Illegal entitlement key/value pair: com.apple.developer.ubiquity-kvstore-identifier, 894BCL9P67.com.manahan.thoughtspreader
Illegal entitlement key/value pair: com.apple.developer.ubiquity-container-identifiers, <CFArray 0x10d10aa10 [0x7fff7d96cea0]>{type = mutable-small, count = 1, values = (...
Run Code Online (Sandbox Code Playgroud)

你的应用ID仍然存在894BCL9P67.com.manahan.thoughtspreader吗?

或者更改/需要更新这些键?(根据这里的说明?)

该链接表明您需要团队ID而不是您的app id捆绑种子.因人而异.(Apple 在这里记录了这些密钥,提出了相同的建议.我猜你正在使用iCloud,或者最初将你的项目设置为使用它.)

对于不熟悉w/iCloud设置的人,您可以在此处更改这些键的值:

iCloud权利

该设置窗格是项目文件下目标摘要的一部分.选择所需的目标和摘要'选项卡',如下所示(然后滚动到底部):

摘要页面

Apple的配置文档就在这里.