2015-09-17 37 views
0

我有一个捆绑标识符com.company.app一个应用程序,我已经归档的应用程序,并把它上传,现在当我试图安装我得到这个错误:无法在iOS8上安装企业应用IPA +

Sep 17 13:30:11 IPhone itunesstored[2199] <Error>: 0x102570000 __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.5aCjkh/extracted/Payload/MyApp.app identifier = com.company.app type = User App> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)" UserInfo=0x145ec8ed0 {LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=192, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.5aCjkh/extracted/Payload/MyApp.app identifier = com.company.app type = User App> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)} 

所以,我已经将我的包标识符更改为:AppIdPrefix.com.company.app,并再次将应用程序归档,上传,并突然它工作得很好。

但现在,我得到这个错误:

Sep 17 13:58:35 IPhone SpringBoard[2200] <Warning>: No valid 'aps-environment' entitlement string found for application 'MyApp': (null). Notifications will not be delivered. 

此外,当我手动设置的发放模板和代码签名认同这样的:

enter image description here

然后我试图存档并获得此错误:

enter image description here

所以一方面,当我尝试安装没有AppId前缀添加捆绑它不会安装,但另一方面,当我添加AppId前缀它安装应用程序,但aps环境将无法正常工作。

我该如何解决这个问题?我从字面上到处搜索,找不到适合我的东西。

回答

0

我做的下一步骤解决问题:

  1. 使用iPhone Configuration Utility应用(download from here)我的Mac删除所有部署配置文件。

  2. Keychain Access中删除所有与此应用程序相关的证书。

  3. 打开Xcode,并通过控股AltProduct菜单打开打CleanClean Build Folder

  4. 重新启动Mac

希望有所帮助。请享用。

0

请为所有代码签名标识添加分发选项。确保你已经添加了正确的包标识符。清理代码并重试。它会工作。

+0

你是什么意思的“正确的捆绑标识符”?添加或不添加AppId前缀? –

0

Sep 17 13:58:35 IPhone SpringBoard[2200] <Warning>: No valid 'aps-environment' entitlement string found for application 'MyApp': (null). Notifications will not be delivered.

此错误相当于您在应用程序中使用Push Notification,但在开发者帐户尚未启用推送notification.Enable它为您的AppID

+0

因此,要保留AppId前缀或从捆绑的开头删除它? –

+0

是的,我确实启用了特定软件包和AppId的推送通知。 –

+0

你是否正在更改软件包ID。这不会帮助你。它应该与你的APPID软件包标识符相同 – Mukesh

相关问题