Skip to content
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

Add Rosetta Simulator Instructions #4571

Open
differenzPriv opened this issue Sep 5, 2024 · 1 comment
Open

Add Rosetta Simulator Instructions #4571

differenzPriv opened this issue Sep 5, 2024 · 1 comment

Comments

@differenzPriv
Copy link

Describe your idea

Hello :)
In our project, we unfortunately have to rely on a few dependencies that require the app to run on an iOS Rosetta simulator. I have used Detox in other projects before (it’s amazing), but I recently integrated it into this one with the mentioned dependencies.

When running the ‘detox build’ command multiple times in this project, you encounter different errors each time. However, they always relate to SwiftEmitModule or SwiftCompile. I couldn’t find any issues or documentation about these topics or about running Detox in a Rosetta environment. Therefore, I propose writing a documentation article addressing this problem. I resolved it as follows:

  1. Changed my build command to the following: build: 'xcodebuild -workspace ios/MyApp.xcworkspace -scheme MyApp -configuration Debug -sdk iphonesimulator -arch x86_64 -derivedDataPath ios/build'
  2. Run this command in the terminal: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
    arch -x86_64 /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator

Now the build command was able to run flawless.

Thank you for your amazing work and greeting from germany!
Daniel

@differenzPriv differenzPriv changed the title Rosetta Simulator Instructions Add Rosetta Simulator Instructions Sep 5, 2024
@asafkorem
Copy link
Contributor

asafkorem commented Sep 16, 2024

Thanks @differenzPriv, contributions are always welcome! detox build is just a proxy for your build, however, if that's a common issue, it might be a good idea to add that under our build troubleshooting guide.
Check our contribution docs for the docs site here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@asafkorem @differenzPriv and others