How to use Swift package manager in watchOS

Issue #474

SPM

Go to Project -> Swift Packages, add package. For example https://github.com/onmyway133/EasyStash

Select your WatchKit Extension target, under Frameworks, Libraries and Embedded Content add the library

CocoaPods

If we use CocoaPods, then it needs to be in WatchKit Extension

1
2
3
4
target 'MyApp WatchKit Extension' do
use_frameworks!
pod 'EasyStash', :git => 'https://github.com/onmyway133/EasyStash'
end

Comments