question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppCenter build fails with RN 0.64.0 and gesture 10.3

See original GitHub issue

Description

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;

image

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
acidSnkjcommented, Apr 24, 2021

Ok I update this lib to 1.10.3 and it work. I dont know why with the 1.7.0 fail

1reaction
h0norcommented, Aug 11, 2021

Ok, after submitting the issue I want to check for X time if I missed something. I check what other dependencies are required for react-navigation

npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view

After that I checked all required steps for each of those dependencies. For react-native-gesture-handle we didn’t have this line in index.js:

import 'react-native-gesture-handler';

Other dependencies also had problems with configuration. After fixing all installation steps, build on AppCenter went back to successful.

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?

After that, I checked all required steps for each of those dependencies.

-> what does this mean exactly?

import 'react-native-gesture-handler'; -> I already have this on my index.js

Other dependencies also had problems with configuration.

-> 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed Builds - Visual Studio App Center - Microsoft Learn
Try comparing the build command executed in App Center to the command executed locally.
Read more >
react-native-gesture-handler - npm
React Native Gesture Handler provides native-driven gesture management APIs for building best possible touch-based experiences in React ...
Read more >
Why does my RN 61 IOS fail build to build in AppCenter?
I have a RN 0.61.2 app that has successfully built in the past >55 in App center but it currently will not build...
Read more >
Visual Studio App Center | iOS, Android, Xamarin & React ...
Continuously build, test, release and monitor apps for every platform.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found