The solution for this seems to be to omit the arch=x86_64 from the destination and pass it as a var instead:
xcodebuild -workspace CoreLibraries.xcworkspace -scheme CoreLibraries -destination 'platform=iOS Simulator,name=iPhone 15' ARCHS=x86_64 test
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: