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

Library doesn't build on arm64 with buildToolsVersion > 33 (RN 0.71) #140

Open
inssein opened this issue Jan 17, 2023 · 2 comments
Open

Comments

@inssein
Copy link

inssein commented Jan 17, 2023

Just creating an issue before I get a chance to dive in, but currently getting this error when building with RN 0.71 on and M1 mac:

dyld[82242]: Library not loaded: @rpath/libclang_android.dylib
  Referenced from: <C2603478-F6A1-3EC6-AD02-674D107403F2> /Users/inssein/Library/Android/sdk/build-tools/33.0.1/llvm-rs-cc
  Reason: tried: '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/../lib64/libclang_android.dylib' (no such file), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/lib64/libclang_android.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/../lib64/libclang_android.dylib' (no such file), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/lib64/libclang_android.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libclang_android.dylib' (no such file), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/../lib64/libclang_android.dylib' (no such file), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/lib64/libclang_android.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/../lib64/libclang_android.dylib' (no such file), '/Users/inssein/Library/Android/sdk/build-tools/33.0.1/lib64/libclang_android.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/usr/lib/libclang_android.dylib' (no such file, not in dyld cache)

The current workaround seems to be to fallback to buildToolsVersion of 32.0.0.

@AlbinNewSeed
Copy link

Getting this error as well. App builds on windows machine but not on m1 Mac. Did you solve it?

@ricardopetrere
Copy link

Same here, as well as @AlbinNewSeed 's answer. Reverted Build Tools to 32.0.0 no my Mac, now it worked

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

3 participants