模块'glog.glog.log_severity'的导入出现在命名空间'google'中的react native错误

ymdaylpp  于 2023-08-07  发布在  React
关注(0)|答案(2)|浏览(186)

尝试了所有可能的解决方案,例如:use_modular_headers!
pod 'glog',:podspec => '../node_modules/react-native/third-party-podspecs/glog. podspec',:modular_headers => false pod 'Folly',:podspec => '../node_modules/react-native/third-party-podspecs/Folly. podspec',:modular_headers => false
use_modular_headers!
pod 'glog',:podspec => '../node_modules/react-native/third-party-podspecs/glog. podspec',:modular_headers => false pod 'Folly',:podspec => '../node_modules/react-native/third-party-podspecs/Folly. podspec',:modular_headers => false
use_modular_headers!
pod 'glog',:podspec => '../node_modules/react-native/third-party-podspecs/glog. podspec',:modular_headers => false
use_modular_headers!
cd ios && pod安装
但对我来说什么都不管用
对于这个问题有什么解决办法吗??

blmhpbnm

blmhpbnm1#

出于其他原因,我实际上将use_modular_headers!添加到我的Podfile中。然后发生此错误。所以,我把它注解掉了,错误就消失了。

n7taea2i

n7taea2i2#

我也是以上所有
expo 46.0.9 react-native 0.69.5(bare)node 14.15.4
...这是个大问题,直到我加上了这个:

pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec', :modular_headers => false

字符串
成功了

相关问题