应用安装失败:未知错误 Xcode 7
App installation failed: Unknown Error Xcode 7
我的应用程序在模拟器中运行良好,但当我尝试将其安装到我的 iPhone 时,它显示
App installation failed: An unknown error has occurred.
我打开了我的设备日志并得到了这个:
Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: installing app for existing placeholder Raritea.FSS-App <(null) Not found in database>
Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: Not creating progress for Raritea.FSS-App <(null) Not found in database> since it is not a placeholder.
Nov 12 21:17:19 Isaacs-iPhone installd[4549] : 0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/FSS App.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 5853)
Nov 12 21:17:19 Isaacs-iPhone installd[4549] : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Provisioning profiles changed
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Updating MIS trust...
Nov 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: no stored taskRef found
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Provisioning profiles changed
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Updating MIS trust...
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : unrecognized status -67049 from codesigning library
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : 0x16e12f000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : 0x16e087000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 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/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)}
Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : ERROR: MobileInstallationInstallForLaunchServices returned nil
Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : __dispatch_source_read_socket_block_invoke:274: Failed to install application at file:///var/mobile/Media/PublicStaging/FSS%20App.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)}
这件事发生在我身上。我不得不导航到派生数据并将其删除。重新启动 Xcode。为我解决了这个问题。您可能还想重新启动计算机。
设备日志中的这一行让我印象深刻,希望你也看到了:
Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex
这是说(尽管 Xcode 认为在构建时一切正常),您的设备拒绝了您的应用程序扩展的代码签名。
有一些解决方案 here,但根据我个人的经验,这个问题只能通过修改应用和应用扩展的代码签名设置来解决。确保应用程序和应用程序扩展使用相同的证书签名(尽管可能有不同的配置文件)。
正如其他人所建议的那样,我也能够通过 运行 项目 Xcode 中的 Clean
操作以及 deleting the derived data directories 来解决此问题.但我并不总是成功。
我很幸运,将 iPhone 与 mac 断开连接,然后进行分析(Shift + Command + B 或 Product -> Analyze)。
之后,我将 iPhone 重新插入并进行了清理 (Command + k),然后 运行!成功了!
试一试:
Xcode-> Preferences->Locations->Derived Data-> Delete it...
它将清理您的项目,
尝试重新启动您的设备。
然后在设备上构建应用程序。
我也有这个问题,在设备日志中它说我的应用程序扩展的代码签名失败....appex。我去了我的 App Target -> Build phases -> Embed App Extensions 并选中 Copy only when installing,之后我可以安装应用程序phone.
这对我有用:
1) 产品 > 存档(来自 Xcode)
2) 导出 iPa
3) 从 iTunes 或 Diawi 安装此 iPa。
我遇到了同样的问题,但是 XCode 10.2.1.
上的应用没有应用扩展
None 的解决方案对我有用,所以我删除了 XCode 目标并使用相同的文件和设置重新创建它。这对我有用。
我在这个问题上花了很长时间。在 XCode 中执行以下操作终于为我解决了这个问题。其中一些已经提到了,但 4 号终于为我解决了。
- 产品 > 清理构建文件夹 (Cmd+Shift+K)
- Project > Target (Project) > Build Settings,然后检查“Info.plist”文件的路径是否与右键单击文件 > Show file inspector > location="相对于项目
- 断开连接 Phone 并重新启动笔记本电脑并重新启动 phone
- Project > Target (Project) > Build Settings,确保“Excluded Architectures”为空。由于某种原因,我的 arm64 在排除的体系结构中。
希望这对您有所帮助。
我的应用程序在模拟器中运行良好,但当我尝试将其安装到我的 iPhone 时,它显示
App installation failed: An unknown error has occurred.
我打开了我的设备日志并得到了这个:
Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: installing app for existing placeholder Raritea.FSS-App <(null) Not found in database> Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: Not creating progress for Raritea.FSS-App <(null) Not found in database> since it is not a placeholder. Nov 12 21:17:19 Isaacs-iPhone installd[4549] : 0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/FSS App.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 5853) Nov 12 21:17:19 Isaacs-iPhone installd[4549] : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Provisioning profiles changed Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Updating MIS trust... Nov 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: no stored taskRef found Nov 12 21:17:20 Isaacs-iPhone installd[4549] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Provisioning profiles changed Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Updating MIS trust... Nov 12 21:17:20 Isaacs-iPhone installd[4549] : unrecognized status -67049 from codesigning library Nov 12 21:17:20 Isaacs-iPhone installd[4549] : 0x16e12f000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.) Nov 12 21:17:20 Isaacs-iPhone installd[4549] : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Verification stage failed Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : 0x16e087000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 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/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)} Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : ERROR: MobileInstallationInstallForLaunchServices returned nil Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : __dispatch_source_read_socket_block_invoke:274: Failed to install application at file:///var/mobile/Media/PublicStaging/FSS%20App.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)}
这件事发生在我身上。我不得不导航到派生数据并将其删除。重新启动 Xcode。为我解决了这个问题。您可能还想重新启动计算机。
设备日志中的这一行让我印象深刻,希望你也看到了:
Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex
这是说(尽管 Xcode 认为在构建时一切正常),您的设备拒绝了您的应用程序扩展的代码签名。
有一些解决方案 here,但根据我个人的经验,这个问题只能通过修改应用和应用扩展的代码签名设置来解决。确保应用程序和应用程序扩展使用相同的证书签名(尽管可能有不同的配置文件)。
正如其他人所建议的那样,我也能够通过 运行 项目 Xcode 中的 Clean
操作以及 deleting the derived data directories 来解决此问题.但我并不总是成功。
我很幸运,将 iPhone 与 mac 断开连接,然后进行分析(Shift + Command + B 或 Product -> Analyze)。
之后,我将 iPhone 重新插入并进行了清理 (Command + k),然后 运行!成功了!
试一试:
Xcode-> Preferences->Locations->Derived Data-> Delete it...
它将清理您的项目, 尝试重新启动您的设备。 然后在设备上构建应用程序。
我也有这个问题,在设备日志中它说我的应用程序扩展的代码签名失败....appex。我去了我的 App Target -> Build phases -> Embed App Extensions 并选中 Copy only when installing,之后我可以安装应用程序phone.
这对我有用:
1) 产品 > 存档(来自 Xcode)
2) 导出 iPa
3) 从 iTunes 或 Diawi 安装此 iPa。
我遇到了同样的问题,但是 XCode 10.2.1.
上的应用没有应用扩展None 的解决方案对我有用,所以我删除了 XCode 目标并使用相同的文件和设置重新创建它。这对我有用。
我在这个问题上花了很长时间。在 XCode 中执行以下操作终于为我解决了这个问题。其中一些已经提到了,但 4 号终于为我解决了。
- 产品 > 清理构建文件夹 (Cmd+Shift+K)
- Project > Target (Project) > Build Settings,然后检查“Info.plist”文件的路径是否与右键单击文件 > Show file inspector > location="相对于项目
- 断开连接 Phone 并重新启动笔记本电脑并重新启动 phone
- Project > Target (Project) > Build Settings,确保“Excluded Architectures”为空。由于某种原因,我的 arm64 在排除的体系结构中。
希望这对您有所帮助。