react-native-blur: Failed to compile in Xcode: symbol(s) not found for architecture arm64
I 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.
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 1
- Comments: 19 (5 by maintainers)
Commits related to this issue
- Fix build on android (#148) This commit fix error "Could not resolve all artifacts for configuration ':react-native-reanimated:classpath'". I just up grade version and add google repo — committed to Flickering-AI/react-native-blur by Krosh 6 years ago
- Fix Android Gradle setup (#463) Trying to open or build the android/ folder was not possible, due to a missing buildscript block: ERROR: Plugin with id 'com.android.library' not found. After addi... — committed to Flickering-AI/react-native-blur by friederbluemle 5 years ago
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
Had the same issue, For some reason the files BlurAmount.h/BlurAmount.h were not included in RNBlur.xcodeproj