所以我最近升级了我的React Native项目,这导致我的应用程序无法在XCode中构建。版本没有更改,但是似乎某些文件和文件夹不再存在。
我得到的错误是来自String.cpp(第三方)的
#include <double-conversion Groupcctype>
'double-conversion Groupcctype' file not found
我尝试了以下解决方案(重新安装了第三方库),但是它们似乎无法正常工作:
https://github.com/facebook/react-native/issues/21168
$ cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
$ cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../
从上方运行第一行时,我在命令行中遇到此错误:
./ios-install-third-party.sh: line 61: ./ios-configure-glog.sh: No such file or directory
我尝试了其他想法,但也没有用。
有人知道如何解决此问题吗?
答案 0 :(得分:0)
更改此:
#include <double-conversion Groupcctype>
对此:
#include "double-conversion.h"
或:
#include <double-conversion/double-conversion.h> // V8 JavaScript implementation