SwiftPM "swift build" for iOS

I was able to get this working for swift-only packages with the below command, However Objc files still fail.

swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios13.0-simulator"
2 Likes