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
d1fferenz opened this issue Sep 5, 2024 · 1 comment · May be fixed by #4599
Open

Add Rosetta Simulator Instructions #4571

d1fferenz opened this issue Sep 5, 2024 · 1 comment · May be fixed by #4599

Comments

@d1fferenz
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

@d1fferenz d1fferenz 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

@kagrawal98 kagrawal98 linked a pull request Oct 6, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@asafkorem @d1fferenz and others