【问题标题】:Upgraded React Native and now getting glog/logging.h file not found升级了 React Native,现在找不到 glog/logging.h 文件
【发布时间】:2019-03-20 20:12:32
【问题描述】:

我已经将 React Native 从 0.52 升级到 0.59 我知道这是一个巨大的飞跃,但我想还是去试试吧,现在得到 glog/logging.h file not found.

我也知道这里有类似的问题。但我确实已经尝试了所有方法,但我似乎无法解决这个问题。

这是我尝试过的事情之一:

cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../

cd node_modules/react-native/third-party/glog-0.3.4/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

有人会认为这会解决它吗?我没有留下任何石头,它只是不想消失。好玩!

【问题讨论】:

标签: xcode reactjs react-native glog


【解决方案1】:

在此处找到对带有空格的 XCode 应用名称的引用:

https://github.com/facebook/react-native/issues/19774

我还发现,当我使用多个版本时,我有“XCode 10.1.app”。当我将其更改为 XCode.app(并运行 sudo xcode-select --switch /Applications/Xcode.app 之类的东西来更新 XCode 路径)时,我的应用程序构建时没有出现此问题或我迄今为止使用 glog 遇到的任何其他问题。

【讨论】:

  • 谢谢这让我免于很多麻烦。我将 Xcode 11.2.1(带空格)用于旧的 react 本机应用程序,这是解决问题的唯一方法。
猜你喜欢
  • 2018-09-14
  • 2019-07-22
  • 2019-11-18
  • 2018-09-07
  • 2023-01-05
  • 1970-01-01
  • 2019-11-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多