software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.66k stars 1.27k forks source link

'AsyncQueue.h' file not found after upgrading to "react-native-reanimated": "^3.9.0", #5950

Closed gibo77 closed 2 months ago

gibo77 commented 2 months ago

Description

Opening Xcode 15.2 with workspace. Build failure on 'AsyncQueue.h' file not found

Steps to reproduce

  1. Upgrade RN to 0.74
  2. Upgrade react-native-reanimated to 3.9.0
  3. Babel config Ok
  4. pod install
  5. Open Xcode
  6. Build fail on 'AsyncQueue.h' file not found

Snack or a link to a repository

not my program

Reanimated version

3.9.0

React Native version

0.74.0

Platforms

iOS

JavaScript runtime

None

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 2 months ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

gibo77 commented 2 months ago

I was able to solve this issue.

Xcode logs says the error occurs in node_modules at file WorkletRuntime.h

Change to below, since the AsyncQueue.h reside one folder above then folder Tools.

include "../Tools/AsyncQueue.h"

include "../Tools/JSScheduler.h"

include "../SharedItems/Shareables.h"

gibo77 commented 2 months ago

Update Fix. After updating 0.74 and Reanimated to 3.10. I had this issue. Solution: Delete Podfile.lock. Run pod install TWICE since the first did not create Profile.lock After that I was able to build.