React native base headers for ios not found React native base headers for ios not found objective-c objective-c

React native base headers for ios not found


Do you have Parallelize build option unchecked and React listed first in your build targets?

You can find this window in Xcode => Your project icon near the run button => Edit scheme => Build tab


Update:solution on Facebook React-Nativehttps://github.com/facebook/react-native/issues/11813

============

This issue happened to me also. It seems React.xcodeproj only recognise configuration Debug and Release. All of output of React.xcodeproj is written into Debug-iphonesimulator or Release-iphonesimulator.

That means if you have some configurations other than "Debug/Release", the output will still be written into Debug-iphonesimulator or Release-iphonesimulator, that is not what we want.

So the solution is to add a same configuration in React.xcodeproj to match the one of your own project.

For example, if you have "Debug/Release/Test/AppStore" 4 configurations in your own project, you have to make sure React.xcodeproj also has the same 4 configurations.

please click the "+" button of Configurations, then "Duplicate Release Configuration", and rename it according to you need.

enter image description here


It seems like there are a lot of reasons to be getting these 'missing headers' errors and I've tried a lot of things posted on Stack Overflow and nothing would work. Finally I stumbled upon the solution below that did work for me. Posting in case anyone else has the same issue ... its a bit obscure. For me it was caused by a build locations setting in Xcode that is apparently incompatible with vanilla React Native. The build locations setting that fixed this issue is shown here:

in XCode->Settings>Locations->Advanced... make sure your Build Location is not set to Legacy, it should be set to Unique

Note: the vanilla React Native application may have to be reinitialized from scratch with react-native init ... after changing this setting.