XCode 8.1 - “pod repo update”后无法读取模块映射内容

时间:2016-11-26 07:30:36

标签: ios xcode cocoapods

我刚刚按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"}}

(以及我的许多其他豆荚......)

我做了清洁和重建,但那些没有帮助。

我不知道发生了什么。我该如何解决这个问题?

非常感谢。

1 个答案:

答案 0 :(得分:-1)

您可以运行命令行,并尝试在pod update文件所在的文件夹中运行.xcworkspace