[0.49.3] `Pod install` doesn't install all dependencies, fails to install GLog
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: macOS Sierra 10.12.6 Node: 8.6.0 Yarn: 1.1.0 npm: 5.3.0 Watchman: 4.9.0 Xcode: Xcode 9.0
Packages: (installed) react: ^16.0.0-beta.5 (I also tried with 16.0.0, It didn’t work) react-native: ^0.49.3
Target Platform: iOS (11.0)
Steps to Reproduce
I’m trying to integrate RN in my existing iOS Application (which does not have any other dependencies, You can think it as an empty swift project ). I am following official guide
- I created
./ios
directory & Copied swift project in it. - Created
Podfile
in./ios
directory withpos init
- Here is my
Podfile
,
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'sample-ios-app' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'jschelpers',
'cxxreact',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTImage',
'RCTNetwork',
'RCTActionSheet',
'RCTAnimation',
'RCTWebSocket', # needed for debugging
# Add any other subspecs you want to use in your project
]
# To use CocoaPods with React Native, you need to add this specific Yoga spec as well
pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"
# Third party deps
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
end
Here is my Package.json
file,
{
"name": "SampleReactNativeApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react": "^16.0.0-beta.5",
"react-native": "^0.49.3"
}
}
Expected Behavior
Should install all dependencies normally.
Actual Behavior
Doesn’t install dependencies.
Here is the log after i run pod install
➜ ios 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 `GLog` from `../node_modules/react-native/third-party-podspecs/GLog.podspec`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga`
Downloading dependencies
Installing DoubleConversion (1.1.5)
Installing Folly (2016.09.26.00)
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/local/bin/ginstall -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... /usr/local/bin/gmkdir -p
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... /Applications/Xcode 8.3.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch armv7 -isysroot /Applications/Xcode 8.3.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk
checking whether the C compiler works... no
/Users/pranitharekar/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-3e4e4/missing: Unknown `--is-lightweight' option
Try `/Users/pranitharekar/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-3e4e4/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/Users/pranitharekar/Library/Caches/CocoaPods/Pods/External/GLog/f09d6cdb8398b4922e87d51f5245de7e-3e4e4':
configure: error: C compiler cannot create executables
See `config.log' for more details
Reproducible Demo
You can think it as an empty swift project with no dependencies.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9
Top Results From Across the Web
Can't pod install on React Native 0.61.5 new project
Go to Xcode ->preference ->location in that select command line tools : 'your xcode version '.
Read more >RN on M1 -- what am I doing wrong? : r/reactnative - Reddit
Nope, even that creates an error as it can not install the pods. Looks like Flipper-Glog doesn't want to be installed on M1....
Read more >CHANGELOG.md - kubernetes/minikube - Sourcegraph
Implement mounting on QEMU with socket_vmnet #15108; Added cloud-spanner emulator addon #15160; Add minikube license command #15158. Minor Improvements: Allow ...
Read more >[fedora-arm] arm rawhide report: 20150721 changes
... install and deploy artifacts the Maven way New package: ... System New package: apache-ivy-2.4.0-4.fc23 Java-based dependency manager ...
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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop 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
Top GitHub Comments
Problem fixed
I have multiple version of Xcode development, my naming is “Xcode X.X.app”, in my case the space is responsible for this issue, I renamed to “XcodeX.X.app” then
sudo xcode-select -s /Applications/XcodeX.X.app/Contents/Developer
and run again
pod install
After a long research i have fixed that by changing the xcode-select path to Xcode.app path:
sudo xcode-select --switch /Applications/Xcode.app
after that run
pod install