React Native CLANG_CXX_LANGUAGE_STANDARD正在更新到gnu++14

xlpyo6sf  于 2023-04-07  发布在  React
关注(0)|答案(1)|浏览(138)

刚刚升级:

  • react-native到0.71.4
  • 响应18.2.0

从那时起,每当我运行pod install时,我都会收到以下警告。
完成此更新需要5-6分钟的时间...
在Xcode中尝试cmd + Delete“ C++ 方言”,但它总是返回“gnu++14”
如何阻止这些警告?

Pod install took 16 [s] to run
Setting REACT_NATIVE build settings
Setting CLANG_CXX_LANGUAGE_STANDARD to gnu++14 on [path_to_my_project].xcodeproj
Pod install took 19 [s] to run
Setting REACT_NATIVE build settings
Setting CLANG_CXX_LANGUAGE_STANDARD to gnu++14 on [path_to_my_project].xcodeproj
Pod install took 21 [s] to run
Setting REACT_NATIVE build settings
Setting CLANG_CXX_LANGUAGE_STANDARD to gnu++14 on [path_to_my_project].xcodeproj
Pod install took 24 [s] to run
Setting REACT_NATIVE build settings
Setting CLANG_CXX_LANGUAGE_STANDARD to gnu++14 on [path_to_my_project].xcodeproj
Pod install took 26 [s] to run
Setting REACT_NATIVE build settings
Setting CLANG_CXX_LANGUAGE_STANDARD to gnu++14 on [path_to_my_project].xcodeproj
Pod install took 29 [s] to run
.
.
.
2q5ifsrm

2q5ifsrm1#

看起来你被https://github.com/Shopify/react-native-skia/issues/405或类似的东西击中了。解决方案可能是在你的**.podspec**文件中手动指定标准,例如。

s.pod_target_xcconfig = {
    …
    "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
  }

相关问题