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.

[Bug][iOS] 'jsi/jsi.h' file not found

See original GitHub issue

Hi!

After update from 0.16.0 to 0.16.1 I get this error:

In file included from /node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/JSLockPerfHack.mm:1:

/node_modules/@nozbe/watermelondb/native/ios/WatermelonDB/JSLockPerfHack.h:3:10: fatal error: 'jsi/jsi.h' file not found
#include <jsi/jsi.h>
         ^~~~~~~~~~~
1 error generated.
Screenshot 2020-05-19 at 13 03 05

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
victorbutlercommented, May 28, 2020

I had this issue too. For this I added a Header Search Path to the xcode project target build settings.

  1. Find file node_modules/@noze/watermelondb/native/ios/WatermelonDB.xcodeproj and open it in Xcode
  2. Add $(SRCROOT)/../../../../../ios/Pods/Headers/Public/React-jsi recursive path to your settings like in the pic below. Screen Shot 2020-05-28 at 4 34 25 PM
  3. Click off the popover window to make it disappear and try to build ios again.

Notes: This only works if you have the ios directory in your project root. So if you have it set up differently, it will still fail. This might not be the correct way to include these headers, but it’s what I found. jsi/jsi.h is all over the place. In the react-native package it’s inside ReactCommon but I had more issues when I added that path.

image

@radex I tried to fork and create a PR for this but it looks like master isn’t up to date with the 0.17.0-2 tag so I had some trouble testing.

3reactions
ASavchikcommented, May 22, 2020

have the same error with 0.16.0 =((( react-native: 0.61.5 X-code 11.5 Using pods

Read more comments on GitHub >

github_iconTop Results From Across the Web

'jsireact/JSIExecutor.h' file not found - Stack Overflow
The issue is with HEADER SEARCH PATHS in the React Native subspec for jsiexecutor on the master branch of "react-native": "0.58.3".
Read more >
React Native JSI: Part 1 - Getting Started - Notesnook Blog
This file does not exist. You have to create this java class. Create a new java class and name it SimpleJsiModulePackage .
Read more >
Installation | React Native Navigation - Open Source
'RCTBundleURLProvider.h' file not found. ``` This is because the `React` scheme is missing from your project. You can verify this by opening the...
Read more >
@eversdk/lib-react-native-jsi - npm
iOS. Requirements: Xcode 12.5 cd ios && pod install && cd .. On iOS, the library is installed automatically. However, currently it is...
Read more >
'RCTLog.h' file not found & Us… | Apple Developer Forums
h ' file not found and Use of undeclared identifier 'RNBRANCH_VERSION' respectively. Now you may be wondering that this issue may be related...
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