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.

RN 0.42.0 iOS 'Lexical Preprocessor Issue'. React header files not found.

See original GitHub issue

Description

Fresh RN project initializations have been failing to build and run for me. I have been facing this issue for about a week and a half and tried several different things. I simply cannot get a React Native project to build on my machine. Header files cannot be found for whatever reason. Any help would be very appreciated.

Reproduction

react-native init testproject open Xcode project Clean project Build project Build fails

Error screenshots: screen shot 2017-03-05 at 11 29 11 pm screen shot 2017-03-05 at 11 29 18 pm

Additional Information

  • React Native version: 0.42.0
  • Platform: iOS (Xcode 8.2.1)
  • Operating System: MacOS Sierra

Issue Analytics

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

github_iconTop GitHub Comments

13reactions
javayhucommented, Jun 13, 2017

I tried the solution in here: https://twitter.com/skellock/status/818813810781908992, and the problem solved. Remember to disable parallelize build in scheme configuration and add React target before your own project target. Hope it helps.

Additional information: React Native version: 0.44.0 Platform: iOS (Xcode 8.3.2) Operating System: MacOS Sierra

8reactions
pie6kcommented, Oct 15, 2017

For me - rm -rf node_modules watchman watch-del-all rm -fr $TMPDIR/react-*, restart xcode, rm -fr $TMPDIR/react-* helped.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lexical or preprocessor issue file not found occurs while ...
After the Xcode update, started getting Lexical or preprocessor Issue errors on build. Some XCDataModel header files could not be found.
Read more >
lexical or preprocessor issue (xcode): 'firebasemessaging.h ...
I simply cannot get a React Native project to build on my machine. Header files cannot be found for whatever reason. Any help...
Read more >
Lexical or Preprocessor Issue | Apple Developer Forums
I updated my MacOS and XCode this past week and now I have 15 errors that weren't there before and all dealing with...
Read more >
Active questions tagged react-native+ios - Stack Overflow
I have this working fine, and I can install the cocoapod and see the native classes from the RN side no problem. One...
Read more >
iOS : Xcode 10 Lexical or preprocessor issue .h file not found
iOS : Xcode 10 Lexical or preprocessor issue .h file not found [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
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