import of module 'glog.glog.log_severity' appears within namespace 'google'

See original GitHub issue

I’ve faced with the following problem (https://github.com/google/glog/issues/393) Using RN for an SDK, created a pod file. The pod install works well, but during the xcode’s build process i get the following error message.

Screenshot at Aug 27 14-43-57

I assume the problem caused by the swift 5.x version, i’ve never met this error before.

Environment

React Native version: react-native-cli: 2.0.1 react-native: 0.60.5 pod version: 1.8.0.beta.1 osx 10.15 Beta (19A536g) Xcode 11.0 beta 5 (11M382q) Toolchain: Swift 5.1 Snapshot 2019-07-25 (a)

My pod file

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'
use_frameworks!

target 'XXXXX' do

  pod 'React', :path => '../../js/node_modules/react-native/'
  pod 'React-Core', :path => '../../js/node_modules/react-native/React'
  pod 'React-DevSupport', :path => '../../js/node_modules/react-native/React'
  pod 'React-RCTText', :path => '../../js/node_modules/react-native/Libraries/Text'
  pod 'React-RCTImage', :path => '../../js/node_modules/react-native/Libraries/Image'
  pod 'React-RCTNetwork', :path => '../../js/node_modules/react-native/Libraries/Network'
  pod 'React-RCTWebSocket', :path => '../../js/node_modules/react-native/Libraries/WebSocket'
  pod 'React-RCTLinking', :path => '../../js/node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTAnimation', :path => '../../js/node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../../js/node_modules/react-native/Libraries/Blob'
  pod 'React-RCTLinking', :path => '../../js/node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTActionSheet', :path => '../../js/node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTSettings', :path => '../../js/node_modules/react-native/Libraries/Settings'
  pod 'React-RCTVibration', :path => '../../js/node_modules/react-native/Libraries/Vibration'
  pod 'React-cxxreact', :path => '../../js/node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../../js/node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../../js/node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../../js/node_modules/react-native/ReactCommon/jsinspector'

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

  pod 'yoga', :path => '../../js/node_modules/react-native/ReactCommon/yoga'
  pod 'react-native-camera', subspecs: ['RCT', 'RN'], path: '../../js/node_modules/react-native-camera'
  pod 'react-native-image-picker', :path => '../../js/node_modules/react-native-image-picker'
  pod 'rn-fetch-blob', :path => '../../js/node_modules/rn-fetch-blob'
  pod 'react-native-image-resizer', :path => '../../js/node_modules/react-native-image-resizer'
  pod 'react-native-orientation', :path => '../../js/node_modules/react-native-orientation'
  pod 'RNDeviceInfo', :path => '../../js/node_modules/react-native-device-info'
  pod 'RNGestureHandler', :path => '../../js/node_modules/react-native-gesture-handler'
end

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

8reactions
coopermaruyamacommented, Sep 27, 2019

This solved it for me using 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
3reactions
hamedsoheilicommented, Oct 13, 2019

Same on 0.59.10 release? 😢

Meanwhile, I need to use use_modular_headers!

i use_modular_headers! . due to https://github.com/react-native-community/lottie-react-native/issues/511

Read more comments on GitHub >

github_iconTop Results From Across the Web

import of module 'glog.glog.log_severity' appears ... - GitHub
Hello All, I am running iOS project using react-native. I have installed pods, below is my Podfile _source ...
Read more >
ios - Import of module 'glog.glog.log_severity' appears within ...
Unlinked all auto-linked modules and manually specified them in pod file. Also tried use_modular_headers! pod 'glog', :podspec => '../ ...
Read more >
Import of module 'glog.glog.log_severity' appears within ...
Coding example for the question Import of module 'glog.glog.log_severity' appears within namespace 'google'
Read more >
third_party/linux/include/glog/logging.h - Google Git
Annoying stuff for windows -- makes sure clients can import these functions ... The verbose logging can also be turned on module-by-module. For...
Read more >
import of module 'glog.glog.log_severity' appears within ...
Hello All, I am running iOS project using react-native. I have installed pods, below is my Podfile.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found