RN 0.42.0 iOS 'Lexical Preprocessor Issue'. React header files not found.
See original GitHub issueDescription
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:
Additional Information
- React Native version: 0.42.0
- Platform: iOS (Xcode 8.2.1)
- Operating System: MacOS Sierra
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:27 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 addReact
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
For me -
rm -rf node_modules
watchman watch-del-all
rm -fr $TMPDIR/react-*
, restart xcode,rm -fr $TMPDIR/react-*
helped.