0
我正在添加一個監視應用程序,並且正在嘗試導入我的iOS應用使用的WatchKit擴展庫中的庫(SwiftyJSON
)。我已經更新了我的podfile這樣:WatchKit無法從庫中導入庫
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Alamofire', '~> 3.0'
pod 'AlamofireImage', '~> 2.0'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod "PubNub", "~> 4.1"
pod 'Siren'
end
target 'MyAppWatch Extension' do
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
end
當我運行pod install
,一切似乎都表現得像它應該。問題是當我在WKInterfaceController中使用導入SwiftyJSON
時,我得到錯誤沒有這樣的模塊SwiftyJSON
。是否有另一個設置我沒有正確設置?