我想讓CocoaPods在Swift項目中工作,但這是我第一次。找不到Pods.modulemap - 看錯目錄
我Podfile是
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', '~> 1.2'
pod 'SwiftyJSON', '~> 2.2.0'
我跑pod install
但建設它給了我這個錯誤:
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"}
怪異的是,這是/用戶/ JT/TMP-IOS /不即使目錄我在。
Tue Jun 09$ pwd
/Users/jt/repos/EmbersSwift
Tue Jun 09$
我確實在該目錄中的東西之前,它是什麼引用不明確的結果。我怎麼解決這個問題?我懷疑它是在Pods.debug.xconfig中的東西,但希望有人以前處理過。
THX
我有完全相同的問題。你有沒有找到解決方案?我感覺這個錯誤不斷出現並不時消失。我也使用Alamofire和SwiftyJSON,但它在錯誤的文件夾中搜索模塊地圖.... - 我想知道是否必須這樣做,該項目使用框架? – skofgar