Failed to compile in Xcode: symbol(s) not found for architecture arm64
See original GitHub issueI don’t know if it’s the cause, but I upgraded as npm suggested, from react-native-blur 1.2.1 to 1.3. Realized it doesn’t work on RN 0.37 and I’m not ready to upgrade to RN 0.40 yet, so I downgraded react-native-blur back to 1.2.1. On compiling in Xcode to run my app on device, I get the following error:
Ld /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/APPNAME.app/APPNAME normal arm64
cd /Users/USER/Documents/code/APPNAME/ios
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk -L/Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos -F/Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos -filelist /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Intermediates/APPNAME.build/Debug-iphoneos/APPNAME.build/Objects-normal/arm64/APPNAME.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -Xlinker -object_path_lto -Xlinker /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Intermediates/APPNAME.build/Debug-iphoneos/APPNAME.build/Objects-normal/arm64/APPNAME_lto.o -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -ObjC -lc++ /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libReact.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTActionSheet.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTGeolocation.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTImage.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTLinking.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTNetwork.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTSettings.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTText.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTVibration.a /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/libRCTWebSocket.a -lSafariViewManager -lReact-Native-Webview-Bridge -lRealmReact -lc++ -lz -lRNVectorIcons -lRNBlur -Xlinker -dependency_info -Xlinker /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Intermediates/APPNAME.build/Debug-iphoneos/APPNAME.build/Objects-normal/arm64/APPNAME_dependency_info.dat -o /Users/USER/Library/Developer/Xcode/DerivedData/APPNAME-bifiexuwlrscqffroslswjnvqvfq/Build/Products/Debug-iphoneos/APPNAME.app/APPNAME
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_BlurAmount", referenced from:
objc-class-ref in libRNBlur.a(BlurView.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I’ve tried rm -rf ~/Library/Developer/Xcode/DerivedData/
to delete cache, as well as react-native unlink react-native-blur and link again. Same error.
Any help would be appreciated.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Symbol(s) not found for arm64 | Apple Developer Forums
My app builds and runs fine on the Sim and on the phone/Watch, but fails with "Symbol(s) not found for arm64". when building...
Read more >Undefined symbols for architecture arm64 - ios - Stack Overflow
The solution was to go to the Project -> Target -> Build Settings and change "Build Active Architecture Only" to YES. Clean and...
Read more >iOS ld: symbol(s) not found for architecture arm64 build fails ...
However, trying to flutter build ios --release on iOS and I'm getting the following messages: Encountered error while building for device.
Read more >symbol not found for architecture arm64 - You.com
Clean your project and run the: "Archive" build again. Open side panel. Xcode 7.1 - symbol(s) not found for architecture arm64.
Read more >Xcode Build fails - Undefined symbols for architecture arm64
Hey, I am really hoping someone can help me here, I have a unity project that runs in editor no issues, When I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A fix for it… go Libraries => RNBlur => select TARGETS => Build Phases => add blurAmount.m to Compile Sources… somebody forgot to put it there… hope it helps… cheers! edit: RN 0.39 RNBlur 1.2.1
It is fixed in 2.0.0 btw