Xcode 15 beta: unable to load standard library for target 'arm64-apple-ios17.0-simulator'

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?

Facing same issue on Xcode 15 Beta 5 as well

Using the following command, I was able to build or test (in Xcode 15 RC):

xcodebuild build -scheme Your-Package -sdk iphonesimulator17.0 -destination "OS=17.0,name=iPhone 15 Pro"
Xcode 15 beta: unable to load standard library for target 'arm64-apple-ios17.0-simulator'
 
 
Q