I'm trying to get CocoaPods working in a Swift project but this is my first time.
My Podfile is
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 1.2'
pod 'SwiftyJSON', '~> 2.2.0'
I run pod install
but building it gives me this error:
Error: unable to read module map contents from 'Target Support
Files/Pods/Pods.modulemap': Error Domain=NSCocoaErrorDomain Code=260
"The file “Pods.modulemap” couldn’t be opened because there is no such file."
UserInfo=0x7fac488d5af0 {NSFilePath=/Users/jt/tmp-ios/my-template/Pods/Target
Support Files/Pods/Pods.modulemap, NSUnderlyingError=0x7fac457f0e90 "The operation
couldn’t be completed. No such file or directory"}
The weird is that this is that /Users/jt/tmp-ios/ is not even the directory I am in.
Tue Jun 09$ pwd
/Users/jt/repos/EmbersSwift
Tue Jun 09$
I did have something in that directory before by what it is referencing that is not clear. How would I fix this? I suspect it is something in Pods.debug.xconfig but was hoping somebody had dealt with this before.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…