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

iOS arm64 architecture only work on physical device #35

Closed
florianf22 opened this issue Dec 17, 2021 · 4 comments · Fixed by #165
Closed

iOS arm64 architecture only work on physical device #35

florianf22 opened this issue Dec 17, 2021 · 4 comments · Fixed by #165
Assignees

Comments

@florianf22
Copy link

Hello

it's not running on IOS

image

@BenJeau
Copy link

BenJeau commented Dec 17, 2021

I'm getting the exact same error while trying out the Example or creating a new React Native application with react-native-skia. As the error shows, this may be a problem related to Apple M1 chips arm64. I suppose the precompiled libskia.a is not arm compatible?

@wcandillon
Copy link
Contributor

This issue is confirmed. As a workaround, it will work if you use a real device. A fix for using the arm architecture on the simulator will come soon.

@wcandillon wcandillon changed the title It won't run on IOS iOS arm64 architecture only work on physical device Dec 18, 2021
@madsroskar
Copy link

Just so it's mentioned - I can run it fine if I build the app with rosetta which works alright as a workaround for the time being for me. :)

I have a second terminal emulator set to run with rosetta I use, but I imagine arch -x86_64 react-native ios also could work :)

@chrfalch
Copy link
Contributor

The issue is that before Apple M1 the simulator and the device had different architectures (x64 and arm) which was super simple to handle in fat binaries. Now that we've got the new Apple M1 chip the device and simulator has the same architecture (arm) - but different platforms (iOS and iOS Simulator). This requires us to move the iOS binaries into xcframeworks with all the correct platforms and architectures. This is work in progress.

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

Successfully merging a pull request may close this issue.

5 participants