Can't find ”RCTAssert.h” while compiling after freshly generated project on v0.10.0
See original GitHub issueIt seems there’s an error in v0.10.0 that causes application generated with react-native init
to not be compilable immediately. The fix is to open <AppName>.xcodeproj/project.pbxproj
and find and replace any mention of "$(SRCROOT)/node_modules/react-native/React/**"
with "$(SRCROOT)/../node_modules/react-native/React/**"
(note the ..
)
Issue Analytics
- State:
- Created 8 years ago
- Comments:22 (8 by maintainers)
Top Results From Across the Web
Newest 'react-native' Questions - Page 2544 - Stack Overflow
React-native Xcode build fails -> 'RCTAssert.h file not found' ... After installing react native in the terminal and I created projects according to...
Read more >https://patch-diff.githubusercontent.com/raw/faceb...
I ran into an unrecoverable error in React Native when passing this type of ... -fbsource/xplat/js/react-native-github/React/Base/RCTAssert.h:28:14: note: ...
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
The problem for me was that the Test Target had an incorrect Header Search Path. This can be fixed by going into xcode, selected the Test Target, going to build Settings, going into the section “Search Paths”.
Inside this “Search Paths” section, there is a “Header Search Paths” attribute, select it and make sure there is a search path: $(SRCROOT)/…/node_modules/react-native/React set to Recursive. MAKE SURE THE “…” is present after $(SRCROOT) or it will be looking in the wrong directory. MAKE SURE YOU’RE LOOKING IN THE TEST TARGET, NAMED {YOURAPP}Tests
@brenmcnamara Thank you, your solution help me to fix this. I do not know why in year 2018, this problem still occur 😦 so sad