In Xcode 14, Swift Package libraries can be built with the following command:
swift build -v -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios12.3-simulator"
But in Xcode 15 beta 5, I'm encountering an error:
<unknown>:0: error: unable to load standard library for target 'x86_64-apple-ios12.3-simulator'
The error persists even when I change the OS version (such as to ios17.0
) or change the architecture to arm64
.
Has there been a change to the behavior of the swift command in Xcode 15 that I should be aware of?