ios - WatchKit Can't Import Library From Pods -


i'm adding watch application, , i'm attempting import library within watchkit extension ios app uses (swiftyjson). have updated podfile such:

source 'https://github.com/cocoapods/specs.git' platform :ios, '8.0' use_frameworks!  target 'myapp'     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'     pod 'swiftyjson', :git => 'https://github.com/swiftyjson/swiftyjson.git' end 

when run pod install, seems behave should. problem when i'm using import swiftyjson inside wkinterfacecontroller, error no such module swiftyjson. there setting haven't set properly?

the way use add pods watchos framework following podfile:

source 'https://github.com/cocoapods/specs.git'  use_frameworks!   platform :ios, '8.0'  link_with 'appname'  target 'watchname extension'   platform :watchos, '2.0'   pod 'nameofyourpod', '~> x.0.0' end 

but there important point include of libraries in watch extension, there libraries not support watchos platform yet. there articles how add manually podspec support it.

i hope you


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -