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

Issue building on Apple Silicon #126

Open
czarop opened this issue Jan 9, 2025 · 2 comments
Open

Issue building on Apple Silicon #126

czarop opened this issue Jan 9, 2025 · 2 comments

Comments

@czarop
Copy link

czarop commented Jan 9, 2025

Hi,

On Apple Silicon (M4 Pro), I have an issue building while using Flutter_Rust_Bridge. This error occurs whether i build for arm64 or x86_64.
I can build the same code on windows x86_64 and linux arm64 with no issues.
I'm looking for some leads as to what could be causing this. I have contacted the owner of Flutter_Rust_Bridge but they say the issue is with this crate.
Could you provide any help - this crate is a depenency of many larger crates, so it is impeding their use on apps with a flutter UI.

The error is:
Undefined symbols for architecture arm64:
"SCDynamicStoreCopyComputerName", referenced from:
whoami::os::target::
$LT$impl$u20$whoami..os..Target$u20$for$u20$whoami..os..Os$GT$::devicename::MYDEVICENAME in librust_lib_db_app.a[arm64]154
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Many thanks for any help you can provide

@AldaronLau
Copy link
Member

@czarop Thanks for opening the issue!

When it shows this error, are you building for iOS, MacOS or Android?

@czarop
Copy link
Author

czarop commented Jan 10, 2025

I am building for MacOS (desktop)

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

No branches or pull requests

2 participants