Original author: Mutual Mobile
Example in ./Examples/UsingSwiftPackage.Xcode12 is highly RECOMMENDED, if you're using Xcode 12. Not need to pod install. Just open the Example.xcworkspace, then you're good to go.
If you prefer using Cocoapods, there is also a corresponding example lying in ./Examples/UsingCocoaPods.
Swift package for mac targets are not ready with 'neat' solution except duplicating codes or wrapping codes inside
#if !os(macOS) ... #endifmacro which isn't as elegant as the way Cocoapods handles cross-platform targets.So if you're planning using
Wormholewith macOS targets, please go with Cocoapods anyway.
pod 'Wormhole', :git => 'https://github.com/vencewill/Wormhole.git'.package(url: "https://github.com/vencewill/Wormhole.git", from: "0.1.0"),Vance Will, vancewilll@icloud.com
Wormhole is available under the MIT license. See the LICENSE file for more info.