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

'worklets/Registries/WorkletRuntimeRegistry.h' file not found #6617

Closed
maulikv27 opened this issue Oct 19, 2024 · 16 comments
Closed

'worklets/Registries/WorkletRuntimeRegistry.h' file not found #6617

maulikv27 opened this issue Oct 19, 2024 · 16 comments
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS

Comments

@maulikv27
Copy link

maulikv27 commented Oct 19, 2024

Description

#include <worklets/Registries/WorkletRuntimeRegistry.h>

namespace worklets {

std::set<jsi::Runtime *> WorkletRuntimeRegistry::registry_{};
std::mutex WorkletRuntimeRegistry::mutex_{};

} // namespace worklets

Steps to reproduce

  1. pod install
  2. run from xcode

Snack or a link to a repository

nil

Reanimated version

3.16.0

React Native version

0.74.4

Platforms

iOS

JavaScript runtime

JSC

Workflow

React Native

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Copy link

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?

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Oct 19, 2024
Copy link

github-actions bot commented Oct 19, 2024

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Description section.

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Missing info The user didn't precise the problem enough labels Oct 19, 2024
@FernandoAOborges
Copy link

Issue: 'ReanimatedSensor.h' and 'WorkletRuntimeRegistry.h' Files Not Found in Xcode 16 (IOS ONLY)

node_modules/react-native-reanimated/apple/reanimated/sensor/ReanimatedSensorContainer.m:2:9 'reanimated/apple/sensor/ReanimatedSensor.h' file not found

node_modules/react-native-reanimated/Common/cpp/worklets/Registries/WorkletRuntimeRegistry.cpp:1:10 'worklets/Registries/WorkletRuntimeRegistry.h' file not found

Environment:

React Native version: "react-native": "0.75.4"
React Native Reanimated version: "react-native-reanimated": "^3.16.0"
Xcode version: 16

@petertoth-dev
Copy link

same for me, it's impossible to add the package to a new react native project, sometimes one .h file is missing usually worklets/Registries/WorkletRuntimeRegistry.h, but sometimes Xcode throws even more errors about multiple missing files.

@maulikv27 @FernandoAOborges hey guys, LMK if you have any findings, even if not the solution, let's put this together!

your package.json? Maybe we have some package common that's incompatible with this library?
Firebase is very suspicious to me TBH, they require lots of breaking changes to be installed and work.

package.json

  "dependencies": {
    "@react-native-async-storage/async-storage": "^2.0.0",
    "@react-native-community/netinfo": "^11.4.1",
    "@react-native-firebase/analytics": "^21.0.0",
    "@react-native-firebase/app": "^21.0.0",
    "@react-native-firebase/crashlytics": "^21.0.0",
    "@react-navigation/bottom-tabs": "^6.6.1",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/native-stack": "^6.11.0",
    "@reduxjs/toolkit": "^2.2.7",
    "@rnmapbox/maps": "^10.1.31",
    "@tanstack/react-query": "^5.59.0",
    "axios": "^1.7.7",
    "immer": "^10.1.1",
    "react": "18.3.1",
    "react-native": "0.75.4",
    "react-native-encrypted-storage": "^4.0.3",
    "react-native-logs": "^5.1.0",
    "react-native-mmkv": "^2.12.2",
    "react-native-reanimated": "^3.16.0",
    "react-native-safe-area-context": "^4.11.0",
    "react-native-screens": "^3.34.0",
    "react-redux": "^9.1.2",
    "zustand": "^5.0.0-rc.2"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.75.4",
    "@react-native/eslint-config": "0.75.4",
    "@react-native/metro-config": "0.75.4",
    "@react-native/typescript-config": "0.75.4",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-native-dotenv": "^3.4.11",
    "react-test-renderer": "18.3.1",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }

@petertoth-dev
Copy link

@maulikv27 @FernandoAOborges

I got it working. The latest version is bugged, I downgraded to 3.15.5 everything works as expected.

@Rehan-05
Copy link

@petertoth-dev , You are right. Latest version itself having this bug. I also downgraded to 3.15.5 and it works.

@themovlik
Copy link

@petertoth-dev @Rehan-05 This is my package.json I tried 3.15.5 it's not working.

ERRORS:

'reanimated/apple/sensor/ReanimatedSensor.h' file not found

'reanimated/RuntimeDecorators/UIRuntimeDecorator.h' file not found

package.json

{ "dependencies": { "@gorhom/bottom-sheet": "^4.6.4", "@react-native-async-storage/async-storage": "^2.0.0", "@react-native-community/datetimepicker": "^8.2.0", "@react-native-community/netinfo": "^11.4.1", "@react-native-community/viewpager": "^5.0.11", "@react-native-firebase/analytics": "^21.0.0", "@react-native-firebase/app": "^21.0.0", "@react-native-firebase/crashlytics": "^21.0.0", "@react-native-firebase/messaging": "^21.0.0", "@react-native-picker/picker": "^2.8.1", "@react-navigation/bottom-tabs": "^6.6.1", "@react-navigation/native": "^6.1.18", "@react-navigation/stack": "^6.4.1", "deprecated-react-native-prop-types": "^5.0.0", "moment": "^2.30.1", "patch-package": "^8.0.0", "postinstall-postinstall": "^2.1.0", "react": "18.3.1", "react-native": "0.75.4", "react-native-background-timer": "^2.4.1", "react-native-confetti-cannon": "^1.5.2", "react-native-create-thumbnail": "^2.0.0", "react-native-date-picker": "^5.0.7", "react-native-device-info": "^13.1.0", "react-native-event-listeners": "^1.0.7", "react-native-exit-app": "^2.0.0", "react-native-fast-image": "^8.6.3", "react-native-floating-label-input": "^1.4.3", "react-native-gesture-handler": "^2.16.2", "react-native-image-crop-picker": "^0.41.4", "react-native-image-picker": "^7.1.2", "react-native-keyboard-aware-scroll-view": "^0.9.5", "react-native-modal-datetime-picker": "^18.0.0", "react-native-modalize": "^2.1.1", "react-native-orientation-locker": "^1.7.0", "react-native-permissions": "^5.0.0", "react-native-picker-select": "^9.3.1", "react-native-progress": "^5.0.1", "react-native-progress-circle": "^2.1.0", "react-native-reanimated": "^3.15.5", "react-native-render-html": "^6.3.4", "react-native-root-siblings": "^5.0.1", "react-native-root-toast": "^3.6.0", "react-native-safe-area-context": "^4.11.1", "react-native-screens": "^3.34.0", "react-native-slider": "^0.11.0", "react-native-splash-screen": "^3.3.0", "react-native-svg": "^15.8.0", "react-native-swiper": "^1.6.0", "react-native-switch-toggle": "^2.2.1", "react-native-twilio-video-webrtc": "^3.2.1", "react-native-video": "^6.7.0", "react-native-video-controls": "^2.8.1", "react-native-webview": "^13.12.3", "react-native-youtube": "^2.0.2", "react-native-youtube-iframe": "^2.3.0" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.75.4", "@react-native/eslint-config": "0.75.4", "@react-native/metro-config": "0.75.4", "@react-native/typescript-config": "0.75.4", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.3.1", "typescript": "5.0.4" }, "engines": { "node": ">=18" }, "packageManager": "yarn@3.6.4" }

@kennCK
Copy link

kennCK commented Oct 20, 2024

Same here.

I tried the 3.15.5 and it's not working also.

@Guhan-SenSam

This comment was marked as off-topic.

@idanCohenDev

This comment was marked as off-topic.

@kennCK
Copy link

kennCK commented Oct 20, 2024

That was weird! What I did was to reinstall all libraries related to react-navigation and tried to reinstall the react-native-reanimated 3.15.5 and it works now.

@mohamed-sultan

This comment was marked as off-topic.

@efstathiosntonas
Copy link
Contributor

efstathiosntonas commented Oct 20, 2024

duplicate of #6607

3.16.1 with the fix is coming out early this week

in the meantime you can install 3.17.0-nightly-20241018-16297eb3c which includes the fix.

@ShehabMind
Copy link

@efstathiosntonas How to install this 3.17.0-nightly-20241018-16297eb3c

@efstathiosntonas
Copy link
Contributor

yarn add react-native-reanimated@3.17.0-nightly-20241018-16297eb3c

or

npm install react-native-reanimated@3.17.0-nightly-20241018-16297eb3c

@tomekzaw
Copy link
Member

Duplicate of #6607. Fixed in #6614.

Please upgrade to https://github.com/software-mansion/react-native-reanimated/releases/tag/3.16.1.

yarn add react-native-reanimated@^3.16.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing info The user didn't precise the problem enough Missing repro This issue need minimum repro scenario Platform: iOS This issue is specific to iOS
Projects
None yet
Development

No branches or pull requests