我刚刚通过 pod repo update
更新了我的豆荚。更新后,我回到Xcode构建项目。令我惊讶的是,Xcode未能使用以下错误构建我的项目:
error: unable to read module map contents from 'Target Support Files/KeychainSwift/KeychainSwift.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “KeychainSwift.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/MyPath/MyPrj/Pods/Target Support Files/KeychainSwift/KeychainSwift.modulemap, NSUnderlyingError=0x7f9f8530d330 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error: unable to read module map contents from 'Target Support Files/KeychainSwift/KeychainSwift.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “KeychainSwift.modulemap” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/MyPath/MyPrj/Pods/Target Support Files/KeychainSwift/KeychainSwift.modulemap, NSUnderlyingError=0x7f9f847248e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
(还有我的许多其他豆荚...)
我做了干净和重建,但没有帮助。
我不知道发生了什么。我该如何解决?
非常感谢。
您可以运行命令行,然后尝试在.xcworkspace
文件的文件夹中运行pod update
。