[0.54.0] IOS pod install error. Module glog cannot be installed
See original GitHub issueI’m trying to upgrade from 0.42.0 to 0.54.0. When I run pod install I receive an error:
users-MacBook-Pro:ios stsiushkevich$ pod install
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `ReactNativeFabric` from `../node_modules/react-native-fabric`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `react-native-google-maps` from `../node_modules/react-native-maps`
Fetching podspec for `react-native-maps` from `../node_modules/react-native-maps`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
Downloading dependencies
Using Crashlytics (3.9.3)
Installing DoubleConversion (1.1.5)
Using Fabric (1.7.2)
Using Firebase (4.0.4)
Using FirebaseAnalytics (4.0.2)
Using FirebaseCore (4.0.4)
Using FirebaseInstanceID (2.0.0)
Using FirebaseMessaging (2.0.0)
Installing Folly (2016.09.26.00)
Using GoogleMaps (2.5.0)
Using GoogleToolboxForMac (2.1.1)
Using Protobuf (3.3.0)
Using QBImagePickerController (3.4.0)
Using RSKImageCropper (1.6.3)
Installing React 0.54.0 (was 0.53.0)
Installing ReactNativeFabric 0.5.1 (was 0.5.1)
Installing boost-for-react-native (1.63.0)
Installing glog (0.3.4)
[!] /bin/bash -c
set -e
#!/bin/bash
set -e
PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}"
CURRENT_ARCH="${CURRENT_ARCH:-armv7}"
export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)"
export CXX="$CC"
# Remove automake symlink if it exists
if [ -h "test-driver" ]; then
rm test-driver
fi
./configure --host arm-apple-darwin
# Fix build for tvOS
cat << EOF >> src/config.h
/* Add in so we have Apple Target Conditionals */
#ifdef __APPLE__
#include <TargetConditionals.h>
#include <Availability.h>
#endif
/* Special configuration for AppleTVOS */
#if TARGET_OS_TV
#undef HAVE_SYSCALL_H
#undef HAVE_SYS_SYSCALL_H
#undef OS_MACOSX
#endif
/* Special configuration for ucontext */
#undef HAVE_UCONTEXT_H
#undef PC_FROM_UCONTEXT
#if defined(__x86_64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#elif defined(__i386__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
#endif
EOF
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot
checking whether the C compiler works... no
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
/Users/stsiushkevich/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-1de0b/missing: Unknown `--is-lightweight' option
Try `/Users/stsiushkevich/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-1de0b/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/Users/stsiushkevich/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-1de0b':
configure: error: C compiler cannot create executables
See `config.log' for more details
I have tried to use 0.52.0 version, but had same error. Can you advice me how to resolve it?
Environment
Environment: OS: macOS Sierra 10.12.5 (16F73) Node: 6.11.3 npm: 5.6.0 Watchman: 4.9.0 Xcode: 8.3.3 (8E3004b) Android Studio: 3.0.1
my Podfile:
# Uncomment the next line to define a global platform for your project
platform :ios, '8.0'
target 'phrsimplyconnect' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for phrsimplyconnect
pod 'Firebase/Core'
pod 'Firebase/Messaging'
pod 'RSKImageCropper'
pod 'QBImagePickerController'
pod 'Fabric'
pod 'Crashlytics'
pod 'ReactNativeFabric', :path => '../node_modules/react-native-fabric'
target 'phrsimplyconnectTests' do
inherit! :search_paths
# Pods for testing
end
rn_path = '../node_modules/react-native'
pod 'yoga', :path => "#{rn_path}/ReactCommon/yoga"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
pod 'boost-for-react-native'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'GoogleMaps'
pod 'react-native-maps', path: '../node_modules/react-native-maps'
pod 'react-native-google-maps', path: '../node_modules/react-native-maps'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
Packages: (wanted => installed) “react”: “16.3.0-alpha.1”, “react-dom”: “16.3.0-alpha.1”, “prop-types”: “15.6.1”, “react-mixin”: “4.0.0”, “react-native”: “0.54.0”,
Expected Behavior
pod install is executed successfully
Actual Behavior
Issue Analytics
- State:
- Created 6 years ago
- Reactions:17
- Comments:15 (1 by maintainers)
Top Results From Across the Web
OS pod install error. Module glog cannot be installed
This error would be caused by installing another version of xcode. So after installing the new version restart your system and run pod ......
Read more >iOS : OS pod install error. Module glog cannot be installed
iOS : OS pod install error. Module glog cannot be installed [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS : OS ...
Read more >[Solved]-OS pod install error. Module glog cannot be installed
This error would be caused by installing another version of xcode. So after installing the new version restart your system and run pod...
Read more >command `pod install` failed. cause: /bin/bash -c - You.com
The error seems to occur when installing glog and running the react-native ios-configure-glog script. This appears to be resolved in react-native versions >...
Read more >[ReactNative/iOS] Pod install command failing - 네이버 블로그
[0.54.0] IOS pod install error. Module glog cannot be installed · Issue #18408 · facebook/react-native. I'm trying to upgrade from 0.42.0 to ...
Read more >
Top Related Medium Post
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The issue is closed but in case if above answers don’t work. put this in console -> xcrun -k --sdk iphoneos --show-sdk-path if the answer is xcrun:_ error: SDK “iphoneos” cannot be located xcrun: error: SDK “iphoneos” cannot be located xcrun: error: unable to lookup item ‘Path’ in SDK ‘iphoneos’
then put this sudo xcode-select –switch /Applications/Xcode.app
Then install pod again
I am on XCode Version 10.0, And having same problem.\