Build Failed: Undefined symbols for architecture x86_64
See original GitHub issueThe app crashes due to react-native-image-filter-kit, this is the crash log:
Xcode build failed > Error:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RCTImageView", referenced from:
objc-class-ref in IFKImageFilter.o
__OBJC_$_CATEGORY_RCTImageView_$_CacheKey in RCTImageView+CacheKey.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Terminal Error:
The following build commands failed:
.../Library/Developer/Xcode/DerivedData/MY_PROJECT-dxmgqdxborzhroajvyivtvivrlsi/Build/Products/Debug-iphonesimulator/react-native-image-filter-kit/react_native_image_filter_kit.framework/react_native_image_filter_kit normal x86_64
(1 failure)
react_native_image_filter_kit was installed properly based on documentation via: pod install
what I’ve done to fix the issue with no success:
- Upgrading macOs from Mojave to Catalina
- Upgrading Xcode from 10.2 to 11.4
- Adding javaScriptCore.framework > Build Phases > Link Binary and Libraries (for both my_project & my_projectTests)
Current System Info: OS: macOS 10.15.5 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 234.01 MB / 8.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.15.1 - /usr/local/bin/node npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 28, 29 Build Tools: 28.0.3, 29.0.2, 29.0.3 System Images: android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 11.4/11N132i - /usr/bin/xcodebuild npmPackages: react: ^16.9.0 => 16.9.0 react-native: ^0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
That error means that native part of the module can’t be accessed - e.g. it was not installed properly.
Add this line in your react-native-image-filter-kit.podspec , this file exist in node_modules / react-native-image-filter-kit s.static_framework = true your entire file should be :
don’t forget :
cd ios && pod install
Thx to https://github.com/bbeldame