-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import of module 'glog.glog.log_severity' appears within namespace 'google' #393
Comments
What's a pod? How is your problem related to glog? |
Hi @sergiud , pod is dependency manager used to install and update 3rd party dependencies. Its related to glog because, this error is happening in glog/logging.h file |
Please then provide a minimal example allowing to reproduce the problem, without pod. |
I also have the same issue on line 512 of glog/logging.h // They need the definitions of integer types. |
I'm neither familiar with Folly nor with pod. Please provide a reproducible standalone example showcasing the problem. Closing the issue until then. |
@imRanjit I have the same issue. Looks like it's required to include "use_frameworks!" in your Podfile for Swift projects to make React Native work. So for now I have to use "use_frameworks!" and do not use "use_modular_headers!" which means to use dynamically linked frameworks instead of static ones :( |
Try to turn off module imports for this pods pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec', :modular_headers => false
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 |
Is there a solution without using use_Frameworks! |
@anutripa Try updating cocoapods. P.S. @sergiud sorry for hijacking this thread with seemingly unrelated issue. The point of failure was in the glog here where includes were inside the namespace. The swift <==> objC bridge was trying to generate "modular_headers" for that and chocked on that syntax which brought us all here. Hopefully this is not a problem any more. |
Other infos
|
Is the glog prepared for Clang 11.0.0? I assume the problem can be a deprecated syntax, because i haven't faced with this issue before i upgraded to Catalina beta |
Add same in pod file #include "glog/log_severity.h" |
I'm locking the discussion because the issue is clearly not in glog but rather is caused by the tools being used. |
Hello All,
I am running iOS project using react-native. I have installed pods, below is my Podfile
_source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/goinstant/pods-specs-public'
target ‘appName’ do
platform :ios, '9.0'
use_modular_headers!
end_
So when I run my project, I get the above error. Please let me know how to fix this.
The text was updated successfully, but these errors were encountered: