Xcode 14.3 CLI command to trigger Rosetta build/run

Hi, as Xcode 14.3 dropped Rosetta 2 Support and added a run option directly in Xcode 14.3 (Rosetta Simulators), I wondered how I can trigger a build for a i.e. iPhone 14 Pro (Rosetta) via CLI. I already checked the man page of xcbuild and xcrun.

xcrun simctl list also outputs only the simulators and the device IDs which brings me to the assumption that the building and running for Rosetta is a parameter/flag set by Xcode. But which and where?

Happy for any sort of help, resource, or hint.

Post not yet marked as solved Up vote post of kaulex Down vote post of kaulex
2.6k views
  • same issue, please help~

Add a Comment

Replies

Having the same issue, wondering what will be the response for this

I'm in the same boat too...

Having the exact same issue. Has anyone had any luck with this?

same issue, any update ?

@Lemoni @Jride88 @Valeriy @liorho

Give this a go:

Append arch=x86_64 to build with a Rosetta simulator.

For example: xcodebuild -workspace App.xcworkspace -scheme App -destination "platform=iOS Simulator,name=iPhone 13,arch=x86_64" build

@Noitham not work..

xcodebuild test -workspace OmniSDK.xcworkspace -scheme OmniAPITests -destination 'platform=iOS Simulator,name=iPhone 14,arch=x86_64'

--- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:00008103-001D69941A79001E }

Error: building for Mac Catalyst, but linking in object file built for iOS Simulator...