0

自从我向 iOS 项目添加了共享扩展后,我就遇到了这个错误。当 xcode 完成构建项目并且就在它可以在设备上启动应用程序之前,会弹出错误。所以我追踪了设备日志以获取更多信息,如下所示。

Jul 24 11:04:36 cloudy45mans-iPhone-6 installd[3502] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 24 11:04:38 cloudy45mans-iPhone-6 installd[3502] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/Assets.car
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPNotification.storyboardc/MPNotificationViewController.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPNotification.storyboardc/puo-Hy-QiQ-view-Wch-Xc-Avw.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/Info.plist
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/MPSurveyMultipleChoiceQuestionViewController.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/MPSurveyNavigationController.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/MPSurveyTextQuestionViewController.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/RIP-po-dgx-view-cp6-lZ-a9t.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/V5X-Ik-MvF-view-dcL-M9-gG3.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/MPSurvey.storyboardc/tDf-fb-udT-view-LG7-cL-aRp.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/THDateDay.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex/THDatePickerViewController.nib
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: 0x1004a0000 -[MICodeSigningVerifier performValidationWithError:]: 188: Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex identifier = com.present.iphone.shareextension type = App Extension> : 0xe8008017 (Signed resources have been added, removed, or modified)
Jul 24 11:04:39 cloudy45mans-iPhone-6 installd[3502] <Error>: 0x1004a0000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Jul 24 11:04:40 cloudy45mans-iPhone-6 streaming_zip_conduit[3503] <Error>: 0x100384000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex identifier = com.present.iphone.shareextension type = App Extension> : 0xe8008017 (Signed resources have been added, removed, or modified)" UserInfo=0x126e25b10 {LibMISErrorNumber=-402620393, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=188, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.W3ZgdD/extracted/Payload/Present.app/PlugIns/shareextension.appex identifier = com.present.iphone.shareextension type = App Extension> : 0xe8008017 (Signed resources have been added, removed, or modified)}
4

1 回答 1

2

我还没有找到解决方案,但这篇文章帮助我暂时解决了这个问题。

尝试在 iPhone 上调试应用程序时收到消息“已添加、修改或删除已签名的资源”

从 xcode 中停止按钮旁边的下拉菜单中选择“编辑方案...”。展开左侧面板中的“运行”。选择“预操作”,然后单击右侧面板底部的加号。在以下行中添加代码,关闭并运行。您需要将路径替换为您的项目路径。

rm -rf ~/Library/Developer/Xcode/DerivedData/TestProject/Build/Products/Debug-iphoneos/shareextension.*

rm -rf ~/Library/Developer/Xcode/DerivedData/TestProject/Build/Products/Debug-iphoneos/shareextension.*
于 2015-07-28T02:16:24.453 回答