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 :)
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?
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.
rm -rf ~/Library/Developer/Xcode/DerivedData/*
Then building is ok.
However, running react-native run-ios still give me that error. Wondering if that is caused by npm cache?
Hm, I wouldn't guess it's npm cache.
xcode build success, but RN failed
building with
react-native run-iosor building in the xCode.
delete RN project directory: ${root}/ios/build
react-native-gesture-handler": "1.0.10
I uset it solve
I strongly advise you to use the newest version since I suppose it's only matter of cache.
I strongly advise you to use the newest version since I suppose it's only matter of cache.
RN build cache and xcode build cache is different directory, so xcode build success, RN build fail
I changed iOS Deployment Target from 8.0 to 9.0 in RNGestureHandler.xcodeproj and solved for me
Cleaning the project and removing derived data doesn't do it for me. Seems to be more than a cache issue. Downgrading for now until the regression is fixed. I don't think using the Legacy Build System is a viable long-term solution. 1.0.10 seems to be fine. My guess is it has to do with https://github.com/kmagiera/react-native-gesture-handler/commit/8f0b33f5e93fe71b968da3a51c2f6d91a0f91996
@osdnk
1.0.15 fails for me too, I cleaned every possible cache "rm -rf $TMPDIR/react-* && rm -rf ~/Library/Developer/Xcode/DerivedData/* && watchman watch-del-all && rm -rf ios/build && rm -rf node_modules/ && npm cache clean --force && yarn install"
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.
"react-native": "0.57.7"
"react-native-gesture-handler": "1.0.15"
@nidzola this works for me as well. thx
In my case, after cleaning eveything and install dependencies, I changed target to 10.0
Like https://github.com/kmagiera/react-native-gesture-handler/issues/387#issuecomment-449424335
@osdnk
finally got project compiled in xcode with a clean build.
I have to run this first.rm -rf ~/Library/Developer/Xcode/DerivedData/*Then building is ok.
However, running react-native run-ios still give me that error. Wondering if that is caused by npm cache?
thanks
Most helpful comment
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.15version, both on device and emulator.