Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'RNGestureHandlerStateManager.h' file not found #2740

Closed
1 of 3 tasks
tapz opened this issue Dec 13, 2021 · 8 comments · Fixed by #2815
Closed
1 of 3 tasks

'RNGestureHandlerStateManager.h' file not found #2740

tapz opened this issue Dec 13, 2021 · 8 comments · Fixed by #2815
Assignees
Labels
Bug Build or config issue This issue is likely related to the reporter's specific project config 🏠 Reanimated 2

Comments

@tapz
Copy link

tapz commented Dec 13, 2021

Description

Xcode gives the following error when building:

'RNGestureHandlerStateManager.h' file not found

NativeProxy.mm:
#import "RNGestureHandlerStateManager.h"

NativeMethods.h
#import "RNGestureHandlerStateManager.h"

Works when I add "../" to the path:

#import "../RNGestureHandlerStateManager.h"

I don't know how this is supposed to work for anybody without either modifying the import or some search path.

Expected behavior

File found

Actual behavior & steps to reproduce

File not found

Snack or minimal code example

#import "RNGestureHandlerStateManager.h"

Package versions

  • React Native: 0.66.4
  • React Native Reanimated: 2.3.0
  • NodeJS: 14.18.1
  • Xcode: 13.1 (13A1030d)
  • CocoaPods: 1.11.2

Affected platforms

  • Android
  • iOS
  • Web
@github-actions
Copy link

Issue validator

The issue is valid!

@kirilgorbachov
Copy link

+1

@edykim
Copy link

edykim commented Dec 17, 2021

I found that the issue occurs when I have use_frameworks! in the Podfile. I couldn't figure out the difference, so I replaced some dependencies which requires use_frameworks! to non-required one.

@tapz
Copy link
Author

tapz commented Dec 19, 2021

I tried to make RNReanimated to use static frameworks and static library build type in podfile, but that did not help. Maybe I just create a PR for the .. paths :-)

@piaskowyk
Copy link
Member

Hey, Is it possible you provide a repo to reproduce your issue?

@piaskowyk piaskowyk added Build or config issue This issue is likely related to the reporter's specific project config Missing repro This issue need minimum repro scenario labels Dec 28, 2021
@tapz
Copy link
Author

tapz commented Dec 30, 2021

@piaskowyk Here's a repo to reproduce this:

https://github.com/tapz/reanimatederror-example

@iKoru
Copy link

iKoru commented Jan 5, 2022

still occurs in version 2.3.1

@piaskowyk piaskowyk removed the Missing repro This issue need minimum repro scenario label Jan 7, 2022
@piaskowyk
Copy link
Member

piaskowyk commented Jan 7, 2022

@tapz Thanks to your repro I resolved the problem in a couple of moments - thanks a lot! ❤️
This PR should resolve a problem - #2815

@piaskowyk piaskowyk self-assigned this Jan 7, 2022
piaskowyk added a commit that referenced this issue Jan 10, 2022
## Description

I just changed the way of importing gesture handler headers because in some configurations these were unknown.

Fixes #2740
aeddi pushed a commit to aeddi/react-native-reanimated that referenced this issue Mar 22, 2022
## Description

I just changed the way of importing gesture handler headers because in some configurations these were unknown.

Fixes software-mansion#2740
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Build or config issue This issue is likely related to the reporter's specific project config 🏠 Reanimated 2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants