feat(ios): support simulator launch architecture (iOS 26+)#4916
Merged
feat(ios): support simulator launch architecture (iOS 26+)#4916
Conversation
20159f2 to
e96e5ff
Compare
194bf7d to
3e4bc04
Compare
f730e82 to
1c4d2e1
Compare
cac9d6e to
01d8739
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
archproperty to iOS app config, allowing Detox to pass--archtoxcrun simctl launch. This lets you control which architecture slice of a universal binary runs on the simulator —useful for testing x86_64 behavior under Rosetta on Apple Silicon machines.
Motivation
Xcode 26 introduced split simulator runtimes: Apple Silicon (arm64-only) and Universal (arm64 + x86_64 via Rosetta 2). On Universal runtimes,
simctl launch --arch=x86_64spawns the x86_64slice. This matters for CI and testing: floating-point precision differs between architectures, and some third-party SDKs still ship x86_64-only simulator slices.
What changed
archproperty ('x86_64'or'arm64') onios.appconfigsarchflows from app config throughRuntimeDevice.launchApp()→SimulatorDriver.launchApp()→AppleSimUtils.launch()→--arch=<value>on the simctl commandDetoxIosAppConfigupdated indetox.d.tsUsage
{ "type": "ios.app", "binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/example.app", "arch": "x86_64" }