react-native-gesture-handler: IOS build failed 'Undefined symbols for architecture x86_64'
Updated React-Navigation to 3.0.8 and followed the instruction to install the react-native-gesture-handler.
after react-native link react-native-gesture-handler
i got error when building with react-native run-ios
or building in the xCode.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_RNForceTouchHandler", referenced from:
objc-class-ref in libRNGestureHandler.a(RNGestureHandlerManager.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i am using following packages:
"react-native": "0.57.3",
"react-native-gesture-handler": "1.0.12",
"react-navigation": "3.0.8"
How do i fix this? Please help. Appreciate 😃
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 7
- Comments: 16 (3 by maintainers)
I was getting the same issue, but after next steps I got it resolved:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
I’ve managed to compile and run the build with the latest
1.0.15
version, both on device and emulator.@osdnk finally got project compiled in xcode with a clean build. I have to run this first.
Then building is ok.
However, running react-native run-ios still give me that error. Wondering if that is caused by npm cache?
Downgrading to
"react-native-gesture-handler": "1.0.10"
works for us.I changed iOS Deployment Target from 8.0 to 9.0 in RNGestureHandler.xcodeproj and solved for me
xcode build success, but RN failed
delete RN project directory: ${root}/ios/build
@nidzola this works for me as well. thx
Hi, @sliultron Try changing ‘Build System’ to ‘Legacy Build System’. I’ve just made fresh app with
react-native init
and then linked RNGH and it appears to work fine. Are you using the newest version of Xcode?