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

target 'MyApp WatchKit Extension' do
  use_frameworks!
  pod 'EasyStash', :git => 'https://github.com/onmyway133/EasyStash'
end
Written by

I’m open source contributor, writer, speaker and product maker.

Start the conversation