Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/115.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 由于权限无效,应用程序未能进行代码设计验证_Ios_Xcode_Validation_Icloud_Code Signing Entitlements - Fatal编程技术网

Ios 由于权限无效,应用程序未能进行代码设计验证

Ios 由于权限无效,应用程序未能进行代码设计验证,ios,xcode,validation,icloud,code-signing-entitlements,Ios,Xcode,Validation,Icloud,Code Signing Entitlements,我已经在谷歌上搜索了这些垃圾,找不到任何解决方案。几个月前,当我更新一个不同的应用程序时,这也发生在我身上 我正在运行Xcode 4.2 生成日志: Validate /Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProduct

我已经在谷歌上搜索了这些垃圾,找不到任何解决方案。几个月前,当我更新一个不同的应用程序时,这也发生在我身上

我正在运行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)
Validate/Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app
cd“/Users/chrismanahan/Downloads/parsestarter项目2”
setenv PATH“/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/bin:/usr/sbin:/sbin”
setenv PRODUCT_TYPE com.apple.PRODUCT-TYPE.application
/开发者/平台/iPhoneOS.platform/Developer/usr/bin/Validation/Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app
警告:应用程序未能通过代码设计验证。签名无效,或者未使用iPhone分发证书进行签名。(-19011)
可执行文件=/Users/chrismanahan/Library/Developer/Xcode/DerivedData/ThoughtSpreader-gpmecrthgzqfboguxycmyxiaijjc/ArchiveIntermediates/ParseStarterProject/InstallationBuildProductsLocation/Applications/ThoughtSpreader.app/ThoughtSpreader
codesign_wrapper-0.7.10:使用Apple CA进行概要评估
非法授权密钥/值对:com.apple.developer.ubiquity-kvstore-identifier,894BCL9P67.com.manahan.thoughtspreader
非法的授权密钥/值对:com.apple.developer.ubiquity-container-identifiers,{type=mutable small,count=1,value=(
0:{contents=“894BCL9P67.com.manahan.thoughtspreader”}
)}
AssertMacros:filter_授权(授权白名单、请求的授权、允许的授权),文件:codesign_wrapper.c,行:932
-(空)

每当我遇到此错误时,都是因为Xcode随机删除了我的证书(备份、备份、备份),或者我忘记了从分发证书切换回开发证书。进入“生成设置”并验证您是否拥有正确(甚至存在)的证书,然后清除、清除生成文件夹,然后运行。

我也遇到过此类问题,解决此问题的最佳方法是再次创建应用程序ID和配置文件->删除应用程序的构建文件夹->清理项目->下载配置文件->双击配置文件,因此,它将自动将其打开到钥匙链->刷新->现在将新的配置文件拖放到您的项目->现在在您的项目中转到“构建”选项卡中的项目信息转到“代码签名标识”并选择新配置文件

现在转到itunes并通过应用程序加载器上传

Hope it helps as it did mine. :)

有时,XCode会弄乱它用来签署应用程序的iPhone身份。(有时,我会在3次清理后再次工作

  • 清除过期证书中的密钥链
  • 检查您的项目构建设置,您可能有几个“iPhone发行版”配置文件,并且可能XCode选择了错误的配置文件。(我发现XCode经常保留已删除的旧配置文件的引用:我必须手动删除这些配置文件,编辑*.xcodeproj目录中的*.pbxproj文件)
  • 自从XCode的最新版本以来,XCode管理器可以自动检索配置文件…它可以工作(有时)
  • 我打赌你的问题的关键(请原谅双关语?)在这里:

    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 = (...
    
    非法授权密钥/值对:com.apple.developer.ubiquity-kvstore-identifier,894BCL9P67.com.manahan.thoughtspreader
    非法的授权密钥/值对:com.apple.developer.ubiquity-container-identifiers,{type=mutable small,count=1,value=(。。。
    
    您的应用程序id是否仍然
    894BCL9P67.com.manahan.thoughtspreader

    或者这些密钥是否已更改/需要更新?(按照说明?)

    这个链接表明你需要的是团队id,而不是你的应用程序id包seed.YMMV。(苹果记录了这些密钥,并提出了同样的建议。我猜你是在使用iCloud,或者是将你的项目设置为最初使用它。)

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

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


    苹果用于配置这些的文档是。

    我也遇到了这个问题,并且为我解决了以下问题:


    在iPhone开发中心,当设置应用程序ID时,我忘记选中“为iCloud启用”复选框。返回并打开它,然后重新生成配置文件修复了它。

    我也有同样的问题,并且花了很多天试图解决它,我认为更简单的解决方案是创建一个新项目,并在那里导入所有代码和xib!
    它解决了我的问题!

    在我的iPad上不情愿地升级到Xcode 5和iOS 7,并且花了几个小时的时间试图缩小违规ID的来源之后,我不得不通过编辑*.xcodeproj目录中的*.pbxproj文件手动删除这些配置文件。这是唯一有效的方法ed for me。

    刚刚尝试过,不幸不是我的解决方案:/Thank you thoughSad,嘿,你的日志上说“签名无效,或者没有使用iPhone分发证书进行签名”。告诉我你是在iPhone上部署还是在Apple上发布?希望你知道开发者证书和分发证书之间的区别(请不要介意,如果你知道的话)请检查这个链接,它也有同样的问题…看看我发布给苹果的所有解决方案,是的,我知道区别,我已经做了一年了,从来没有遇到过问题,直到我升级了Xcode,然后它就会抓住每一个机会。