-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
pod install fails due to glog #25561
Comments
This error is the same as #25532, but that issue wasn't formatted well and I couldn't tell what was going on |
Hi @chrisspankroy |
@panyar That did not work for me. Thanks though |
Not work for me too. =/ |
As per #18408 (comment) (thanks @YuryKorovko !)
Fixed! |
That did not work for me |
any luck with this? i'm having the exact same issue on macOS 10.14.6/Xcode 10.3/RN 0.60 |
I have, is necessary update pod before install dependencies pods on react native. |
Seems to be an issue with Xcode after a new install. I resolved this issue on my machine by:
This assumes you've already got command line tools installed. You may be able to achieve the same result from xcode-select on the command line, but I didn't try that. |
Did you manage to find a solution? Ive tried the above and have this same issue. |
Not yet :/ |
Not really a proper fix, but for future reference to others searching, I found that it was almost certainly due to the way Cocoapods is installed by react-native. I installed Cocoapods separately and after that the bootstrap/build commands started to work for me. (Specifically, I tried another framework (nativescript) and installed Cocoapods using their install script - after which everything worked) |
I tried running NativeScript's install script and it did not fix it :( |
Did the Cocoapods install definitely succeed? It doesnt have to be through Nativescript's installer I don't think. |
Yeah, I’ve made sure it succeeds. I’ve ran CocoaPods’s own installer too and nothing |
This looks like a problem with Finally, I found a way to solve the failure of installing Unfortunately, |
I am still having this issue |
updateThe important part was I resolved it by following these instructions (from https://stackoverflow.com/questions/54261455/library-not-loaded-usr-local-opt-readline-lib-libreadline-7-dylib): |
@BelinChung I'm facing the exact same issue, it seems that my glog requires sudo to configure and make. Because of that pod install always fails. I've downgraded react native from 0.60.5 to 0.59.10 and the same issue persists, I've uninstalled and reinstalled different versions of Xcode (11, 10.3, 10.1) and they all seem to fail. |
Just an update: |
Update: |
Updating to 0.61.1 did not work for me :( |
I tried react-native getting started's React Native CLI Quickstart for MacOS for iOS |
So I experimented and found out something that allowed me to install the example AwesomeProject. I created a new user on Mac and made the user admin. Then I logged out my normal user account and logged in as the new user, and followed the instructions. The example app failed to install at installing the pods state, but not for the same reason as my main user. Then I did sudo xcode-select --reset and did pod install and it worked! I tried sudo xcode-select --reset with my normal user account and I am still failing with installing glog however. |
@chrisspankroy |
Whoop, whoop, that finally worked! Great job, I'll close the issue now. Feel free to reopen if this comes up again |
I faced a similar issue with Flipper-GLog dependency, I was using macOS Catalina (with XCode 11)
|
it's not working |
For anyone that ends up here and has the same issue I had (error log below). I got a brand new MacBook Pro and started having the issue below on react-native fresh install when trying to run
|
Solved |
I have exactly the same issue and I tried each solution, except unsetting LDFLAGS and CPPFLAGS variables because I don't find them. I searched in |
I solved the problem with |
thanks a lot. It helped. |
Thanks! This worked for me |
Removing LDFLAGS and CPPFLAGS fixed it for me! |
@lancejpollard works for me. My ~/.zshrc added env for llvm things before. |
This solution works perfectly for me. Thanks @ghost. |
worked for me |
It didn't work any of the solutions above described. still it's laughing on me with the error what can i do? i started working in new Mac there is no below environmental variables I had chosen even XCode CLI tools in preferences -> locations -> command line tools (my version Xcode 12.4 (12D4e)) |
Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template. Can anyone else suggest something to fix this? |
Nothing discussed so far worked for me (xcode-select, removing existing compiler flags). However I managed to make pod install succeed with some fairly extreme hacking in my node_modules folder. When I check the temp directory referenced I see an old config.sub from 2007, which can't handle this command in scripts/ios-configure-glog.sh: In my project I can hack that script under node_modules/react-native/scripts to add this line:
Immediately above the line: After doing that, Now, I am curious about where the config.sub in my node modules came from that it is so out of date (despite having run |
I tried pretty much everything in this thread. I had a value for
|
I got a lot of glog errors not during |
Are you on an m1 mac? |
Yes, I'm using MacBook Air m1 2020 |
Ohh, I had the same problem, you're going to have to disable flipper and use rosetta. [https://stackoverflow.com/questions/66612257/build-error-of-react-native-run-ios-on-m1-macbook] |
@sleaper Tell me if that works for you |
@dalu-ao Now I got new error: Now is problem with React yoga? |
Okay, I'm not super sure. But you can try uninstalling cocoa pods, then installing cocoa pods with brew. [(https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine) i got that same error but I'm not sure how I solved it, try what I said above |
@dalu-ao I installed the Xcode 12.5.1 instead of Xcode 13 beta, reinstall Cocoapods and it works. Thank you very much for your kind help sir. |
If you are using Xcode beta use the command and add (-beta) like this:
|
When running
pod install
in my project, it fails with the error:error: C compiler cannot create executables
React Native version: 0.60.0
I can also reproduce this when not using the beta SDK:
Steps To Reproduce
I found this issue when running
pod install
in my pre-existing project that I have upgraded to RN 0.60. But, I can reproduce the exact same error when runningreact-native init test
and the error occurs when it gets topod install
Describe what you expected to happen:
The script not to crash and
pod install
to finish runningSnack, code example, or link to a repository:
Just do
react-native init test
and it gives the errorThe text was updated successfully, but these errors were encountered: