React native base headers for ios not found

前端 未结 4 1008
余生分开走
余生分开走 2021-02-05 11:38

During the iOS linking phase, I started seeing errors for my React Native project.

React Native version: 0.41.2, 0.40, 0.39

4条回答
  •  遥遥无期
    2021-02-05 12:33

    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.

提交回复
热议问题