SwiftPM and Library Unit Testing

You can use Xcode and xcodebuild to interact with packages as well, so e.g. xcodebuild test to run a package's unit tests. To target iOS, simply pass the appropriate -destination to xcodebuild.