Xcode corrupts project.pbxproj everytime I try to build with Xcode

﹥>﹥吖頭↗ 提交于 2019-12-11 19:32:37

问题


Currently on react-native 0.58.3 and react 16.6.3.

The project builds and runs correctly when using react-native run-ios

However if I try to build using Xcode directly (to test on device for example), it will fail and corrupt the project.pbxproj file with extra entries that make builds fail with react-native run-ios as well.

Below are copies of the project.pbxproj before and after Xcode mangles it:

Before, working:https://pastebin.com/g5fUL1zn

After, not working:https://pastebin.com/M76vinaV

XCode Build Error Log:https://pastebin.com/8TsDD9HS

The main error I am getting is:

error: /Users/bh/Documents/DashiftReactNative/node_modules/react-native/ReactCommon/privatedata/PrivateDataBase.h: No such file or directory

Xcode does mess around with the PrivateDataBase entry...

来源:https://stackoverflow.com/questions/54645609/xcode-corrupts-project-pbxproj-everytime-i-try-to-build-with-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!