首页 > 解决方案 > 无法构建项目 - libswiftAVFoundation.dylib:errSecInternalComponent 错误:任务失败,退出 1 信号 0

问题描述

突然我无法构建项目。我在构建时收到此错误:

Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib /usr/bin/codesign '--force' '--sign' 'E5DD0B9344567811AABBF46F5AA802C26FAD6696' '--verbose' '/Users/vlad/Library/Developer/Xcode /DerivedData/MyApp-aohzmfeceiyidabrejtgjtlfukvs/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib' /Users/vlad/Library/Developer/Xcode/DerivedData/MyApp-aohzmfeceiyidabrejtgjtlfukvs/Build/Products/Debug-iphoneos/ MyApp.app/Frameworks/libswiftAVFoundation.dylib:errSecInternalComponent 错误:任务失败,退出 1 信号 0 { /usr/bin/codesign '--force' '--sign' 'E5DD0B9344567811ABBBF46F5AA802C26FAD6696' '--verbose' '/Users/vlad/Library/Developer/Xcode/DerivedData/MyApp-aohzmfeceiyidabrejtgjtlfukvs/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libswiftAVFoundation.dylib' }

我试图重新包含 Swift 库,但没有帮助。这发生在我尝试连接到 Firebase 但随后将其从 pod 文件中删除之后。

谁能告诉我问题出在哪里以及如何解决?

标签: iosswiftxcode

解决方案


清洁(shift + cmd + k)

删除派生数据(单击文件->工作场所设置->单击派生数据下的箭头并删除整个文件夹)

再次清洁

重建


推荐阅读