Freshly detached app: 'React/RCTDefines.h' file not found

I created a fresh Expo app, detach it, install react-native-vector-icons and link:
https://github.com/riwu/react-native-eject

When i try to build it in XCode, i got an error: ‘React/RCTDefines.h’ file not found

I searched around for this issue and the fix was adding React to Target, but it did not fix the problem in my case.

did you find a solution to this?

The general solution to this category of problems is detailed in the docs here, specifically the details about non-Cocoapods-compatible libraries.

2 Likes

FYI, @ben’s solution is exactly what helped me.