Ad Hoc个人资料问题

时间:2014-09-24 19:02:48

标签: ios xcode provisioning-profile

我有这个错误,有谁知道是什么问题? 我检查并且我在adHoc和主配置配置文件中都有权利密钥,但我不知道为什么会出现此错误

 DTFetchSymbols[512] <Notice>:   
 /System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv7s
 DTFetchSymbols[512] <Notice>: kCommand_ListFilesPlist
 syslog_relay[377] <Notice>: syslog_relay found the ASL prompt. Starting...
 profiled[84] <Notice>: (Note ) MC: Provisioning profiles changed
 mobile_installation_proxy[375] <Warning>: LaunchServices: Please include the 
 kCFBundleIdentifierKey in the options dictionary when installing an app.
 mobile_installation_proxy[375] <Warning>: LaunchServices: installing app with unknown
  bundleID
 installd[384] <Notice>: 0x603000 -[MIClientConnection
 _doBackgroundInstallationForPath:withOptions:completion:]: Install of 
 "/var/mobile/Media/PublicStaging/Test.ipa" type Customer requested by  
 mobile_installation_proxy (pid 375)
 installd[384] <Notice>: 0x603000 -[MIInstaller performInstallationWithError:]: 
 Installing <MIInstallableBundle ID=test.testTest.Test; Version=3, ShortVersion=3.1.2>
 misagent[378] <Error>: attempt to install invalid profile: 0xe8008012
 installd[384] <Error>: 0x603000 -[MIInstallableBundle 
 _installEmbeddedProfileInBundle:]: Could not install embedded profile: 0xe8008012 
 (Unsupported device)
 installd[384] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
 installd[384] <Error>: entitlement 'beta-reports-active' has value not permitted by 
 provisioning profile 'test TEST AdHoc 2015'
 installd[384] <Error>: 0x603000 -[MICodeSigningVerifier performValidationWithError:]:
 186: Failed to verify code signature of <MIExecutableBundle : path =  /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.asUxKy/extracted/Payload/Test.app identifier = test.Test.testTest type = 4> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)

 installd[384] <Error>: 0x603000 -[MIInstaller performInstallationWithError:]: 
 Verification stage failed
 mobile_installation_proxy[375] <Error>: 0x603000 
__MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error 
Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of 
<MIExecutableBundle : path =     /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.asUxKy/extracted/Payload/Test.app identifier = test.Test.testTest type = 4> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)" UserInfo=0x17566950 {LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = 
       /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.asUxKy/extracted/ Payload/Test.app identifier = test.Test.testTest type = 4> : 0xe8008016 (Entitlements found   that are not permitted by provisioning profile), SourceFileLine=186}
 mobile_installation_proxy[375] <Warning>: ERROR:    MobileInstallationInstallForLaunchServices returned nil
 mobile_installation_proxy[375] <Error>: 0x581000 handle_install: Installation failed:   Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x17566a30 {Error=ApplicationVerificationFailed, ErrorDetail=-402620394, ErrorDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.asUxKy/extracted/Payload/Test.app identifier = test.Test.testTest type = 4> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)}

提前致谢!

5 个答案:

答案 0 :(得分:1)

对我来说,测试版报告是活跃的:https://developer.apple.com/library/ios/qa/qa1830/_index.html

我有两个Xcode存档,我可以导出以进行临时分发。 AFAIK它们基于相同的代码并以相同的方式创建(Xcode&gt; Product&gt; Archive)。在导出向导期间,一个存档显示我&#34; beta-reports-active&#34;根据权利,其他人没有。当我尝试使用&#34; beta-reports-active&#34;安装ipas时,我收到与OP相同的错误消息。权利。 我确实重新创建了配置文件并重新安装了appstore分发配置文件,然后再次归档,生成了没有&#34; beta-reports-active&#34;权利,但我不确定这是不是原因。

答案 1 :(得分:1)

对我来说,这从Xcode 7开始发生。

我曾经通过

制作AdHoc .ipa进行无线分发
xcodebuild -exportArchive -archivePath "/path/to/My App 9-24-15, 21.21.xcarchive" -exportPath /path/to/MyApp_AdHoc.ipa -exportFormat ipa -exportProvisioningProfile "MyApp Ad Hoc Distribution Profile"

(Xcode制作的.xcarchive

步骤,我如何解决这个问题:

  1. 不再使用xcodebuild,而是让Xcode通过&#34;导出...&#34;为我做.ipa。组织者中的命令
  2. Set up Xcode to automatically manage my provisioning profiles
  3. 从上述文档中我做了一个例外:在代码签名识别下的目标构建设置中,我指定 iOS Developer 用于Debug版本和用于发布版本的 iOS Distribution
  4. 关闭Xcode
  5. 按照The beta-reports-active Entitlement Technical Q&A中的说明刷新 App Store配置文件,然后通过Xcode下载配置文件(步骤9)我已将其从此处删除

    ~/Library/MobileDevice/Provisioning Profiles
    
  6. 删除DerivedData文件夹

    rm -rf ~/Library/Developer/Xcode/DerivedData/*
    
  7. 删除Xcode缓存(以防万一)

    sudo rm -rf ~/Library/Caches/com.apple.dt.Xcode
    
  8. 再次启动Xcode
  9. 通过偏好设置下载 App Store配置文件 - &gt; 帐户
  10. 实现
  11. 确保我&#34;出口......&#34;通过Xcode在应用程序的权利下没有beta-reports-active密钥(如果你有一个 - 它不会为AdHoc构建工作)

答案 2 :(得分:1)

从XCode 6升级到8后开始发生这种情况,解决问题的原因是添加了以下内容:

-exportProvisioningProfile“MyApp Ad Hoc Distribution Profile”

到我的xcodebuild -exportArchive命令行。

答案 3 :(得分:0)

不确定这是否会对您有所帮助,但我所做的解决了这个问题的是我删除了应用的配置文件。然后我在开发人员门户中重新创建它。接下来我接受了我刚刚制作的构建并让XCode导出它(管理器&gt;导出&gt;保存以进行特别部署),验证它是使用我刚刚制作的配置文件,然后将其上传到testflight并且我能够安装它在我的手机上。我正在使用运行ios 8.0的iPhone 6。

答案 4 :(得分:0)

如果您从命令行(像Jenkins这样的CI系统)构建和签署IPA并且需要嵌入移动配置文件以使用Apple推送通知,则会发生此错误:

xcrun [...] --sign "<<CERTIFICATE NAME>>" --embed "<</path/to/mobileprovision>>"

在这种情况下,您尝试嵌入的移动设备配置文件与您在xcode中使用的设置不同。


您提供的代码示例还会显示'beta-reports-active'权利,表明您使用的是测试版。如果您在StackOverflow上查看,您会发现很多帖子都有关于该特定问题的解决方案。