-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Error running template on Mac with Apple Silicon #1
Comments
This one is a bit tricky. Flutter doesn't ship with ARM64/Universal version of engine yet. The engine can now build natively for ARM64, but the build infrastructure is not yet setup to produce universal binaries: flutter/flutter#81488 So in your case cargo produces ARM64 build, but can't link with X86_64 engine. You can try running the project with Alternatively you can build your own ARM64 version of flutter engine, but that's a bit more work. |
Btw. You might need to install x86_64 toolchain to rust before you do this:
Since you're cross-compiling from aarch64 to x86_64. |
Thanks for the quick reply! It seems like that did the trick, but I'm getting another error that I think is unrelated.
|
That one is indeed unrelated. Which flutter version do you have installed? |
2.3.0-17.0.pre.180 master.
|
I see. The assertion to [FlutterViewController configureTrackingArea] was added just two days ago so I missed it. I'll look into it now. |
Ah, you're right. Is there any way to manually configure the location of the Flutter SDK that nativeshell uses? |
It uses current master :) It just that I haven't updated mine in a week and it so happened that there was a breaking change I didn't expect. Eventually it should work with dev/stable. I should able to publish updated NativeShell crate that fixes the crash in maybe 20 minutes. |
Gotcha! Since this new issue is completely unrelated I guess I can close this now. |
Run into the same error as in nativeshell#1 - thought it's better to update the README.
I published NativeShell 0.1.1. Can you update the examples and try running it again? |
Works like a charm! Thanks for the help! |
I just tried to run the example project on an apple silicon mac, but
cargo run
produces this error:All logs:
The text was updated successfully, but these errors were encountered: