简体   繁体   中英

XCode 8.1 - Unable to read module map content after “pod repo update”

I just updated my pods by pod repo update . After updating, I come back to Xcode to build my project. I am surprised that Xcode failed to build my project with errors like below:

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"}}

(And many of my other pods...)

I did clean and rebuild but those do not help.

I don't know what's happening. How can I fix this?

Thanks a lot.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM