gpt4 book ai didi

cocoapods - 无法调试/安装 Watch App Extension

转载 作者:行者123 更新时间:2023-12-03 17:40:06 28 4
gpt4 key购买 nike

我遇到这个问题已经有一段时间了,一直无法解决这个问题。大约 90% 的时间,我的 watch 应用程序无法在设备上安装。该应用程序将显示安装完成约 80%,然后失败并退出,在

iPhone 调试日志控制台

<Error>: 0x4029b000 __106-[ACXCompanionSyncConnectioninstallWatchAppWithBundleID:withProvisioningProfileInfo:completionWithError:]_block_invoke_3: Failed to install app com.mea.AppName.watchkitapp : Error Domain=ACXErrorDomain Code=17 "Got error 17 in install done from remote side (MI error ApplicationVerificationFailed ; Extended 0xe8008017 ; Desc Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex : 0xe8008017 (A signed resource has been added, modified, or deleted.))" UserInfo={FunctionName=-[ACXServerInstallOperation receivedDictionaryOrData:], SourceFileLine=524, NSLocalizedDescription=Got error 17 in install done from remote side (MI error ApplicationVerificationFailed ; Extended 0xe8008017 ; Desc Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex : 0xe8008017 (A signed resource has been added, modified, or deleted.))}

观看调试日志控制台 ,这些错误被抛出。
Verification stage failed
Jul 21 09:46:59 Andrews-AppleWatch appconduitd[104] <Error>: 0x1f084000 __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.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex : 0xe8008017 (A signed resource has been added, modified, or deleted.)" UserInfo={LibMISErrorNumber=-402620393, LegacyErrorString=ApplicationVerificationFailed, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex : 0xe8008017 (A signed resource has been added, modified, or deleted.), SourceFileLine=142}

由于我在 watch 扩展中使用了这些 pod 框架(显然已被修改)。
SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jul 21 09:46:58 Andrews-AppleWatch installd[35] <Notice>: MIS: resource modified: /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex/Frameworks/Alamofire.framework/Alamofire
Jul 21 09:46:58 Andrews-AppleWatch installd[35] <Notice>: MIS: resource modified: /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex/Frameworks/Realm.framework/Realm
Jul 21 09:46:58 Andrews-AppleWatch installd[35] <Notice>: MIS: resource modified: /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex/Frameworks/RealmSwift.framework/RealmSwift
Jul 21 09:46:58 Andrews-AppleWatch installd[35] <Notice>: MIS: resource modified: /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.eC3skb/extracted/Payload/Watch.app/PlugIns/Watch Extension.appex/Frameworks/SwiftyJSON.framework/SwiftyJSON

现在,我明白这与代码签名有关(对吗?),但是我该如何更新或验证正确的代码签名?

我看到其他人在他们的产品名称中有非字母/非数字符号时遇到了类似的问题,但是,我的产品名称是 AppNameWatch 和 AppNameWatch 扩展。 Apple 在 AppNameWatch 和 Extension 之间生成带有空格字符的扩展文件,所以我认为这很好,而不是问题的原因。

我还尝试清理/重新构建/清理构建文件夹并删除派生数据。

任何帮助将不胜感激,谢谢。

编辑/更新:

看起来这是一个与 cocoapods 相关的问题。在将我的所有框架移至由 Carthage 管理后,该应用程序正在安装和运行,没有与修改资源相关的错误。

最佳答案

在我通过 CocoaPods 更新我的项目以使用动态框架后,我遇到了同样的问题.我不得不去 WatchKit 扩展并更改 Embedded Content Contains Swift CodeYes .现在该应用程序构建并安装正常。

关于cocoapods - 无法调试/安装 Watch App Extension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38506488/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com