AppCenter build fails with RN 0.64.0 and gesture 10.3
See original GitHub issueDescription
AppCenter build is failing with RN 0.64.0 and react-native-gesture-handler 10.3 with an error:
/Users/runner/work/1/s/node_modules/react-native-gesture-handler/ios/RNGestureHandlerManager.h:9:52: error: expected a type
eventDispatcher:(nonnull RCTEventDispatcher *)eventDispatcher;
I started digging and found this PR merged in August’20: https://github.com/software-mansion/react-native-gesture-handler/pull/1160
Seems like imports were changed in iOS code. I reverted this change to check if it was causing for AppCenter to fail: https://github.com/software-mansion/react-native-gesture-handler/compare/master...vsheyanov:master
Result - build is successful.
Important point - locally XCode build succeeds with gesture 10.3, only AppCenter fails.
AppCenter allows to configure XCode version and Node, I tried these: Xcode: 11.7, 12.1, 12.4 Node: 10, 12
None of them worked with 10.3.
Package versions
- React: 17.0.1
- React Native: 0.64.0
- React Native Gesture Handler: 10.3
@PeteTheHeat may be you have an idea why code added in your PR causes AppCenter to fail?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
Ok I update this lib to 1.10.3 and it work. I dont know why with the 1.7.0 fail
Hi @vsheyanov ,
Could you please elaborate on how you were able to solve this problem? I am having the same problem with my iOS build.
npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
-> Did you re-install all these packages?-> what does this mean exactly?
import 'react-native-gesture-handler';
-> I already have this on my index.js-> what does that mean?
I started having this problem after upgrading from RN 0.63.2 to 0.65.0-rc.3 (had to do it to support targetSDK 30 on android). My gesture-handler version is 1.4.1. Upgrading the gesture-handler alone to 1.10.3 just created more build problems.
Below is the description of my problem:
https://github.com/software-mansion/react-native-gesture-handler/issues/1543 I would really appreciate any help. Thanks. @jakub-gonet