-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot specify run-ios to use (Rosetta) destination #1918
Comments
Hey @uloco could you please try with |
I could really use this support, too. |
@szymonrybczak The UDID is the same for both arm and rosetta versions. I cannot specify a specific udid that is different so this does not work. I cannot create a special simulator with rosetta as a destination. I can only choose in xcode to do so. Heck, I can't even start the Rosetta Simulator from the device menu. I can only select it from the dropdown where you choose the device or simulator to build for. |
@adamTrz Looks like so yea, thx! |
Would you mind then helping us with testing it please? 🙂 |
Closing since #1934 was merged :) |
@adamTrz Sure, would love to test it. How do I get this new version? I see it merged 10 minutes ago. |
@jkoutavas got merged already so no need for testing I guess. Will it be included in the next release aka how do I know when? |
Released in 11.3.0 |
Works like a charm. 👍 |
This was released as new version. I guess it wont be propagated to older versions? What is the solution there? Probably force new version or patch package? |
Environment
System:
OS: macOS 13.3.1
CPU: (8) arm64 Apple M1
Memory: 198.61 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.14.0 - ~/Library/Caches/fnm_multishells/93529_1681811907411/bin/node
Yarn: 1.22.19 - ~/Library/Caches/fnm_multishells/93529_1681811907411/bin/yarn
npm: 9.6.4 - ~/Library/Caches/fnm_multishells/93529_1681811907411/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.12.0 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.6 => 0.71.6
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Description
Since Xcode 14.3 there is no longer a way to run Xcode with the rosetta flag enabled.
Also using
arch -x86_64 react-native run-ios
has no effect as it seems.We need to run our simulators on rosetta though, since some of our dependencies are outdated and not maintained (and there is no option of swichting because hardware...)
In Xcode, there is a way around this. You can enable Rosetta in Xcode as a destination for the simulators. After enabling these in
Product > Destination > Destination Architectures > Show Rosetta Destinations
you can choose those in Xcode and the builds start working again.`Unfortuantely you cannot specify the iOS Simulator name with (Rosetta) addition in
run-ios --simulator
. It ignores that part completely and uses the default simulator.React Native Version
0.71.6
Steps to reproduce
npx react-native run-ios --simulator "iPhone 8 (Rosetta)
Reproducible Demo
Just try it in any starter template, I think this feature was not in focus when adding this. If you still need a reproduction, I'm happy to provide one.
The text was updated successfully, but these errors were encountered: