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 🙂
Downgrading to
"react-native-gesture-handler": "1.0.10"
works for us.@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?
xcode build success, but RN failed
delete RN project directory: ${root}/ios/build
I changed iOS Deployment Target from 8.0 to 9.0 in RNGestureHandler.xcodeproj and solved for me
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.