问题描述
我的应用程序在模拟器中运行良好,但是当我尝试在我的iPhone上安装它时,它说
My app runs fine in the simulator, but when I try to install it on my iPhone it says
我打开了我的设备日志并得到了这个:
I opened my device logs and got this:
11月12日21:17:19 Isaacs-iPhone streaming_zip_conduit [5853]:LaunchServices:为现有占位符安装app Raritea.FSS-App<(null)在数据库中找不到>
11月12日21:17:19 Isaacs-iPhone streaming_zip_conduit [5853]:LaunchServices:没有为Raritea.FSS-App创建进度<(null)在数据库中找不到>因为它不是占位符。
11月12日21:17:19 Isaacs-iPhone installd [4549]:0x16e1bb000 - [MIClientConnection installPath:withOptions:completion:]:安装/ var / mobile / Media / PublicStaging / FSS App.app类型开发人员(LSInstallType =(null))由streaming_zip_conduit(pid 5853)请求
11月12日21:17:19 Isaacs-iPhone installd [4549]:0x16e12f000 - [MIInstaller performInstallationWithError:]:安装
11月12日21: 17:20 Isaacs-iPhone个人资料[4644] :(注)MC:配置文件已更改
11月12日21:17:20 Isaacs-iPhone个人资料[4644] :(注)MC:更新MIS信任...
11月12日21:17:20 Isaacs-iPhone securityd [4588]:secTaskDiagnoseEntitlements MISSING keychain entitlements:no stored taskRef found
Nov 12 21:17:20 Isaacs-iPhone securityd [4588]:secTaskDiagnoseEntitlements MISSING keychain entitlements :没有存储的taskRef发现
11月12日21:17:20 Isaacs-iPhone installd [4549]:SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
11月12日21:17:20 Isaacs-i电话档案[4644] :(注)MC:供应档案已更改
11月12日21:17:20 Isaacs-iPhone档案[4644] :(注)MC:更新MIS信托...
11月12日21:17:20 Isaacs-iPhone installd [4549]:代码签名库无法识别状态-67049
11月12日21:17:20 Isaacs-iPhone installd [4549]:0x16e12f000 + [MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:] :142:无法验证/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex的代码签名:0xe8008001(An发生了未知错误。)
11月12日21:17:20 Isaacs-iPhone installd [4549]:0x16e12f000 - [MIInstaller performInstallationWithError:]:验证阶段失败
11月12日21:17:20 Isaacs-iPhone streaming_zip_conduit [5853]:0x16e087000 __MobileInstallationInstallForLaunchServices_block_invoke222:返回错误错误域= MIInstallerErrorDomain代码= 13无法验证/ priva的代码签名te / var / mobile / Library / Caches / com.apple.mobile.installd.staging / temp.FvOJz0 / extracted / FSS App.app/PlugIns/QuickSched.appex:0xe8008001(发生未知错误。)UserInfo = { LibMISErrorNumber = -402620415,LegacyErrorString = ApplicationVerificationFailed,SourceFileLine = 142,FunctionName = + [MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:],NSLocalizedDescription =无法验证/private/var/mobile/Library/Caches/com.apple.mobile的代码签名.installd.staging / temp.FvOJz0 / extracted / FSS App.app/PlugIns/QuickSched.appex:0xe8008001(发生未知错误。)}
11月12日21:17:20 Isaacs-iPhone streaming_zip_conduit [5853] :ERROR:MobileInstallationInstallForLaunchServices返回nil
11月12日21:17:20 Isaacs-iPhone streaming_zip_conduit [5853]:__ dispisp_source_read_socket_block_invoke:274:无法在file:/// var / mobile / Media / PublicStaging / FSS%20App安装应用程序.app /:Error Domain = LaunchServicesError Code = 0(null)UserInfo = {Er ror = ApplicationVerificationFailed,ErrorDetail = -402620415,ErrorDescription =无法验证/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns的代码签名/QuickSched.appex:0xe8008001(发生未知错误。)}
推荐答案
此行在设备日志中脱颖而出,希望你也看到它:
This line in the device logs stood out to me, and hopefully you saw it too:
这就是说(尽管Xcode认为在构建时一切正常),您的设备拒绝了应用扩展程序的代码签名。
This is saying that (although Xcode thought everything was OK at build time), your device rejected the code signature of your app extension.
有一些解决方案,但根据我的个人经验,此问题只能通过修补t来解决他为您的应用和应用扩展程序编码签名设置。确保应用和应用扩展程序使用相同的证书进行签名(尽管可能有不同的配置文件)。
There are a few solutions here, but in my personal experience, this issue can only be fixed by tinkering with the code signing settings for your app and app extension. Make sure that the app and app extension are being signed with the same certificate (although likely different provisioning profiles).
正如其他人推荐的那样,我也能够通过在Xcode中为项目运行 Clean
操作以及。但我并不总是这么成功。
As others have recommended, I've also been able to fix this by running the Clean
action in Xcode for the project, and also by deleting the derived data directories. But I have not always been successful with this.
这篇关于应用安装失败:未知错误Xcode 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!