我已经建立了一个反应本机的android项目,它工作正常。然后,我从iOS部分开始。我正在使用react-native-cli:2.0.1 react-native:0.60.4和Xcode 10和Mac OS Mojave
默认的pod文件在安装glog /bin/bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory时遇到一些问题pod install。执行时出现错误。即使在GitHub上做了所有回答后,堆栈溢出(例如安装Cocoapods,重新安装,ruby安装,链接cocoapods)也是如此。然后稍后在GitHub上,我发现pod文件存在一些问题,因此将其替换为在GitHub上为react-native指定的正确内容。然后根据此链接仍然无法工作:https : //forums.expo.io/t/pod-install-errors-on-newly-detached-app-on-macos-installing-glog-bin-bash-configure- bin-sh-m-bad-interpreter-no-such-file-or-directory / 10054,然后我修改了glog文件,然后它成功安装了glog。
之后,Need to implement mutex.h for your architecture, or #define NO_THREADS我通过define no_thread在ios / Pods / glog / src / config.h文件中添加来更正了glog的另一个问题
现在卡住了
/Volumes/Projects/derive-mobile/ios/Pods/glog/src/utilities.h:148:1: Unknown type name '_START_GOOGLE_NAMESPACE_'
/Volumes/Projects/derive-mobile/ios/Pods/glog/src/utilities.h:168:1: Unknown type name 'int64'; did you mean 'google::int64'?
/Volumes/Projects/derive-mobile/ios/Pods/glog/src/utilities.h:170:20: Unknown type name 'int64'; did you mean 'google::int64'?
/Volumes/Projects/derive-mobile/ios/Pods/glog/src/utilities.h:175:1: Unknown type name 'int32'; did …