gpt4 book ai didi

xcode - 为什么我会收到此错误 : 'import of module appears within namespace' on xcode with react-native?

转载 作者:行者123 更新时间:2023-12-04 11:41:01 28 4
gpt4 key购买 nike

我得到了这个 react-native 项目,我不得不使用 use_modular_headers!Podfile .我想我需要那个,因为这个 pod MercadoPagoSDK是某种动态库(╯°□°)╯,我真的不知道这在 iOS 开发世界中意味着什么。

现在我在 xcode 上构建时遇到这个错误!
import of module 'glog.glog.log_severity' appears within namespace 'google'
我没有找到解决此问题的方法 user_modular_headers!事物。我已经尝试了这里的所有想法 https://github.com/google/glog/issues/393但恐怕他们都没有工作。

最佳答案

确保将以下内容添加到您的 podfile 中,包括 module_headers 部分:
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
有关更多信息,请查看此处的完整主题:https://github.com/facebook/react-native/issues/26217

关于xcode - 为什么我会收到此错误 : 'import of module appears within namespace' on xcode with react-native?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60123737/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com