Xcode 7 无法安装到设备
Xcode 7 cannot install to device
抛出未知错误。我尝试在我的 phone、恢复出厂设置 phone 和第三个 phone 上安装,都出现相同的错误:
很难理解到底是什么问题。其他几个堆栈溢出问题有相同的错误消息,但设备日志中的不同输出与我的无关。
有什么想法吗?它已经构建和安装好几个月了,突然之间..
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: 0x16e087000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/Corpsboard.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 2245)
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.justin.corpboard; Version=0.4, ShortVersion=0.4>
May 19 21:52:36 Isaias-iPhone profiled[1852] <Notice>: (Note ) MC: Provisioning profiles changed
May 19 21:52:36 Isaias-iPhone profiled[1852] <Notice>: (Note ) MC: Updating MIS trust...
May 19 21:52:36 Isaias-iPhone securityd[105] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
May 19 21:52:36 Isaias-iPhone securityd[105] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: MIS: unrecognized status -67049 from codesigning library
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: MIS: Could not copy code signature (error 0xe8008001).
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: 0x16e087000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Verification stage failed
May 19 21:52:36 Isaias-iPhone streaming_zip_conduit[2245] <Error>: 0x16e2d3000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)" UserInfo={LibMISErrorNumber=-402620415, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)}
May 19 21:52:36 Isaias-iPhone streaming_zip_conduit[2245] <Warning>: __dispatch_source_read_socket_block_invoke:299: Failed to install application at file:///var/mobile/Media/PublicStaging/Corpsboard.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)}
May 19 21:52:36 Isaias-iPhone iaptransportd[81] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x146e2e280> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone UserEventAgent[26] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x135f165f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone bulletindistributord[65] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14c5870f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone BTServer[1014] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dd59780> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone apsd[107] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14fdca7b0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone homed[149] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dd9be80> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone atc[43] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x15e741cf0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone SpringBoard[63] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1286a1740> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone nsurlsessiond[131] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x160009c40> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone itunesstored[116] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x12e83f560> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone profiled[1852] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13f55a2f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone passd[1782] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13cd69d60> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:37 Isaias-iPhone securityd[105] <Error>: SOSPeerCoderSendMessageIfNeeded 0mz5ovmoZQmcqr98JnIrTea6dT getCoder: Error Domain=com.apple.security.sos.error Code=1032 "No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT" UserInfo={NSDescription=No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT}
May 19 21:52:37 Isaias-iPhone securityd[105] <Error>: __SOSCCProcessSyncWithAllPeers_Server_block_invoke sync with all peers failed: Error Domain=com.apple.security.sos.error Code=1032 "No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT" UserInfo={NSDescription=No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT}
May 19 21:52:37 Isaias-iPhone CloudKeychainProxy[197] <Error>: __39-[UbiqitousKVSProxy doSyncWithAllPeers]_block_invoke_2 <UBK-s-pCS--> syncWithAllPeers (null), rescheduling timerre
这最终与 Cocoapod 相关,但我不明白为什么。
在设备输出日志中,我发现提到 'AFDateHelper',这是我使用的 pod。删除 pod 并重新安装 pod 后,它开始构建到设备上。
pod 自最初安装以来没有更新或更改,因此不确定它停止的原因。
也许这会对其他人有所帮助。
我在 XCode 8 / iOS9/10 中遇到 RealmSwift 问题
"Unknown Error""An unknown error has occurred"
- 打开控制台
- 点击iOS设备
- 搜索了
- “出现未知错误
发生了”或 "Failed to install application"
发现错误
"LaunchServices"
"Apps Failed be installed" //should be 'to be'
"Not found in database"
向上滚动
- 发现与 a 有关的错误
可可pods 框架
__dispatch_source_read_socket_block_invoke:299: Failed to install application at file:///var/mobile/Media/PublicStaging/app_p.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.qjw4QY/extracted/app_p.app/Frameworks/RealmSwift.framework : 0xe8008001 (An unknown error has occurred.)}
与RealmSwift.framework相关
发现旧问题,建议只为 pods:
清理缓存
https://github.com/realm/realm-cocoa/issues/3473
所以我运行这个:
pod cache clean Realm
pod cache clean RealmSwift
pod install --verbose
我还从 DerivedData 中删除了项目
我删除了 iOS 设备上的应用程序(如果它已经在上面)以强制全新安装而不是升级。
应用安装正常 XCode 8 到 2 台设备一台 运行 iOS 10 台和其他 iOS 9.
注意 Realm 论坛说要删除所有 Pods 并重新添加
pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose
但我之前这样做过,它弄乱了我的 git 存储库。
当我在 SourceTree Git 客户端中打开带有项目的文件夹时,回购的 url 指向 cocoapods spec 项目而不是我项目的回购。
但是我在没有 pod deintegrate 的情况下修复了这个错误,所以我无法确认这是否仍然存在并且有问题。
抛出未知错误。我尝试在我的 phone、恢复出厂设置 phone 和第三个 phone 上安装,都出现相同的错误:
很难理解到底是什么问题。其他几个堆栈溢出问题有相同的错误消息,但设备日志中的不同输出与我的无关。
有什么想法吗?它已经构建和安装好几个月了,突然之间..
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: 0x16e087000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/Corpsboard.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 2245)
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.justin.corpboard; Version=0.4, ShortVersion=0.4>
May 19 21:52:36 Isaias-iPhone profiled[1852] <Notice>: (Note ) MC: Provisioning profiles changed
May 19 21:52:36 Isaias-iPhone profiled[1852] <Notice>: (Note ) MC: Updating MIS trust...
May 19 21:52:36 Isaias-iPhone securityd[105] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
May 19 21:52:36 Isaias-iPhone securityd[105] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: MIS: unrecognized status -67049 from codesigning library
May 19 21:52:36 Isaias-iPhone installd[2221] <Notice>: MIS: Could not copy code signature (error 0xe8008001).
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: 0x16e087000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)
May 19 21:52:36 Isaias-iPhone installd[2221] <Error>: 0x16e087000 -[MIInstaller performInstallationWithError:]: Verification stage failed
May 19 21:52:36 Isaias-iPhone streaming_zip_conduit[2245] <Error>: 0x16e2d3000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)" UserInfo={LibMISErrorNumber=-402620415, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)}
May 19 21:52:36 Isaias-iPhone streaming_zip_conduit[2245] <Warning>: __dispatch_source_read_socket_block_invoke:299: Failed to install application at file:///var/mobile/Media/PublicStaging/Corpsboard.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.8MW6iG/extracted/Corpsboard.app/Frameworks/AFDateHelper.framework : 0xe8008001 (An unknown error has occurred.)}
May 19 21:52:36 Isaias-iPhone iaptransportd[81] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x146e2e280> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone UserEventAgent[26] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x135f165f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone bulletindistributord[65] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14c5870f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone BTServer[1014] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dd59780> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone apsd[107] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x14fdca7b0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone homed[149] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13dd9be80> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone atc[43] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x15e741cf0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone SpringBoard[63] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x1286a1740> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone nsurlsessiond[131] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x160009c40> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone itunesstored[116] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x12e83f560> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone profiled[1852] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13f55a2f0> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:36 Isaias-iPhone passd[1782] <Error>: [appinstallation] LaunchServices observer: Apps Failed be installed: (
"<LSApplicationProxy: 0x13cd69d60> com.justin.corpboard <(null) *Not found in database*>"
)
May 19 21:52:37 Isaias-iPhone securityd[105] <Error>: SOSPeerCoderSendMessageIfNeeded 0mz5ovmoZQmcqr98JnIrTea6dT getCoder: Error Domain=com.apple.security.sos.error Code=1032 "No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT" UserInfo={NSDescription=No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT}
May 19 21:52:37 Isaias-iPhone securityd[105] <Error>: __SOSCCProcessSyncWithAllPeers_Server_block_invoke sync with all peers failed: Error Domain=com.apple.security.sos.error Code=1032 "No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT" UserInfo={NSDescription=No coderData nor coder for peer: 0mz5ovmoZQmcqr98JnIrTea6dT}
May 19 21:52:37 Isaias-iPhone CloudKeychainProxy[197] <Error>: __39-[UbiqitousKVSProxy doSyncWithAllPeers]_block_invoke_2 <UBK-s-pCS--> syncWithAllPeers (null), rescheduling timerre
这最终与 Cocoapod 相关,但我不明白为什么。 在设备输出日志中,我发现提到 'AFDateHelper',这是我使用的 pod。删除 pod 并重新安装 pod 后,它开始构建到设备上。
pod 自最初安装以来没有更新或更改,因此不确定它停止的原因。
也许这会对其他人有所帮助。
我在 XCode 8 / iOS9/10 中遇到 RealmSwift 问题 "Unknown Error""An unknown error has occurred"
- 打开控制台
- 点击iOS设备
- 搜索了
- “出现未知错误 发生了”或 "Failed to install application"
发现错误
"LaunchServices"
"Apps Failed be installed" //should be 'to be'
"Not found in database"
向上滚动 - 发现与 a 有关的错误 可可pods 框架
__dispatch_source_read_socket_block_invoke:299: Failed to install application at file:///var/mobile/Media/PublicStaging/app_p.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.qjw4QY/extracted/app_p.app/Frameworks/RealmSwift.framework : 0xe8008001 (An unknown error has occurred.)}
与RealmSwift.framework相关
发现旧问题,建议只为 pods:
清理缓存https://github.com/realm/realm-cocoa/issues/3473
所以我运行这个:
pod cache clean Realm
pod cache clean RealmSwift
pod install --verbose
我还从 DerivedData 中删除了项目
我删除了 iOS 设备上的应用程序(如果它已经在上面)以强制全新安装而不是升级。
应用安装正常 XCode 8 到 2 台设备一台 运行 iOS 10 台和其他 iOS 9.
注意 Realm 论坛说要删除所有 Pods 并重新添加
pod cache clean Realm
pod cache clean RealmSwift
pod deintegrate || rm -rf Pods
pod install --verbose
但我之前这样做过,它弄乱了我的 git 存储库。
当我在 SourceTree Git 客户端中打开带有项目的文件夹时,回购的 url 指向 cocoapods spec 项目而不是我项目的回购。
但是我在没有 pod deintegrate 的情况下修复了这个错误,所以我无法确认这是否仍然存在并且有问题。