-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Feature]: Add a flag for ios run
to allow for building with Rosetta enabled
#7425
Comments
My problem has been solved by the kind folks over at capawesome, however, I needed to edit the |
+1 |
Podfile changes should be ok to commit to git, in my experience. You will have to make these modifications again if you ever remove the iOS platform and re-add it. What specific changes did you add? I'm running into the same issue. Also, will you be able to deploy to device? iOS devices run arm64. |
The solution to my problem was posted here: |
What Podfile changes did you need to make? Just adding |
Description
Because some plugins can't be build for simulators using arm64 arch, it would be nice to allow for building for simulators using Rosetta using the cli.
Platforms
Request or proposed solution
Add a flag like
--arch_x86_64
or--with-rosetta
or similar to allow for building for simulators using thex86_64
arch. Currently all simulators listed when usingios run
with Xcode 15.3 are arm64 targets and some plugins don't support arm64, like thecapacitor-mlkit/barcode-scanning
plugin.I verified that the core of this problem is solved by adding
,arch=x86_64
to this line:capacitor/cli/src/ios/run.ts
Line 57 in 5b2ab7c
Alternatives
No response
Additional Information
This feature came to mind when I was debugging this issue: capawesome-team/capacitor-mlkit#148.
The text was updated successfully, but these errors were encountered: