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.

jsireact headers are not found during build

See original GitHub issue

Environment

React Native Environment Info: System: OS: macOS 10.14.2 CPU: (12) x64 Intel® Core™ i9-8950HK CPU @ 2.90GHz Memory: 1.59 GB / 32.00 GB Shell: 5.7 - /usr/local/bin/zsh Binaries: Node: 11.8.0 - /usr/local/bin/node Yarn: 1.13.0 - /usr/local/bin/yarn npm: 6.7.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 IDEs: Android Studio: 3.3 AI-182.5107.16.33.5199772 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.6.3 => 16.6.3 react-native: ^0.58.3 => 0.58.3 npmGlobalPackages: react-native-cli: 2.0.1 react-native-create-library: 3.1.2 react-native-wahed-onfido-sdk: 1.0.0

Description

Building react-native fails as it cannot find the jsireact headers in the correct location. They are referenced as jsireact/*.h, however the directory is under ReactCommon/jsiexecutor/jsireact (has it been moved?).

Copying the directory to ReactCommon/jsireact solves the build.

Reproducible Demo

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jantebeestcommented, Jan 31, 2019

@hramos I created a new library project using react-native-create-library, then added the React libs to my Podfile and did a pod install. After that it doesn’t build from Xcode. The error is very clear.

1reaction
amccarricommented, Feb 3, 2019

I ran into this same problem as well while following the documentation on adding react native to an existing application.

There are a couple workarounds that can get you unstuck. One is to prepend all the failing imports with jsiexecutor/ … the other is you can update the header search paths for the JSIExecutor to include the new folder which IMO would be the preferred approach because it doesn’t require you to change source code. After doing that just run pod install again and you should be good to go. See my PR for an example of the latter solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug][iOS] 'jsi/jsi.h' file not found #691 - Nozbe/WatermelonDB
After update from 0.16.0 to 0.16.1 I get this error: In file ... ios/Pods/Headers/Public/React-jsi recursive path to your settings like in ...
Read more >
'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 >
'RCTLog.h' file not found & Us… | Apple Developer Forums
The technical issue is as follows: it seems to be appearing in the RNBranchConfig.m file within the react-native-branch package for iOS specifically in...
Read more >
Installation - WatermelonDB documentation
You might have to tweak the import path to correctly locate Watermelon's bridging header. Android (React Native). Set up Babel config in your...
Read more >
react native reanimated cmake | The Search Engine You Control
It means you have to update the cmake version and export to your path directory. Open Android Studio; Access SDK MANAGER; Access tools...
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