-
Notifications
You must be signed in to change notification settings - Fork 906
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 failure with glog #1194
Comments
This is not a CLI issue. Please report this in main React Native repo. |
@thymikee facebook/react-native#29101 |
what helped me: |
@smecnarowski your suggested solution worked for me. |
sudo xcode-select --switch /Applications/Xcode.app it didn't work for me.. Still fails after Flipper-Glog Analyzing dependencies Copyright (c) Facebook, Inc. and its affiliates.This source code is licensed under the MIT license found in theLICENSE file in the root directory of this source tree.set -e PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}" if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
fi export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch Remove automake symlink if it existsif [ -h "test-driver" ]; then ./configure --host arm-apple-darwin Fix build for tvOScat << EOF >> src/config.h Prepare exported header includeEXPORTED_INCLUDE_DIR="exported/glog" /bin/bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory |
For anyone coming from Google and banging their heads (and for future-me 😉): I tried this and many other similar solutions and they didn't work for me. Then I restarted my Mac (unchecked re-open windows), ran pod install, and it worked. |
@cbnsndwch for a second I thought your solution was working for me, but alas, restarting my computer didn't help :/ |
@smecnarowski you solution worked for me thanks!! |
Hello @genk1 , Just follow the screenshots and select Xcode. |
Thanks!! Will try it!! |
thanks,work for me! |
Thanks! |
Thanks it works |
For those who find this with issues on MacOS Monterrey developer beta, do |
Thanks |
this helped me |
none of the above solutions seem to be working for me. Any other suggestion guys? |
git config --global core.autocrlf false |
for me work removing ios/Pods ios/Podfile.lock and reinstall with npx pod-install on root project. |
dupe issue > |
For me the root of the problem was having |
Thanks a lot |
None of the above worked for me. Crossposting as this potential fix has not been mentioned yet. For me the issue was that I had set More details here: facebook/react-native#32291 |
In case it helps anyone: I was getting the same errors as OP. Turns out the glog script wasn't using escaping paths when testing "checking whether the C compiler works" and I had renamed my |
this is worked for me facebook/react-native#34443 (comment) |
I found removing any white space character from the name fixed it for me. (Also updating |
Thanks ! this is worked for me |
I know this is an old issue, but I just wanted to emphasize the solution provided by @mangjuned, as it may be a little harder to find for others browsing this issue (and all other related threads). This was a tricky problem because I only noticed the error when re-cloning the repo and trying to install the pods from scratch. The issue was indeed installing Anaconda (or Miniconda in my case). Unsetting the compiler flags resolved it. I cannot thank you enough @mangjuned, I was going crazy with this. |
Thanks! 🙏 |
thx!! |
@cbnsndwch I fully didn't believe this would work for me, but it totally did! Ty! |
For anyone expericing this: git config --global core.autocrlf false Would solve the problem. |
@torabian, thanks! |
@jrhe This solved it for me. Thanks! |
Thanks <3 |
I found this error when not installing Xcode beforehand. The error could be a lot clearer... it's caused by these lines in glog.podspec: However, these have been removed for unrelated reasons as of facebook/react-native#43949 so there's nothing left to do. |
Thanks , it worked for me. |
Ask your Question
I have been trying to start with
npx react-native init AwesomeProject
but having failure with glog.Is there any way to overcome this problems??
What I have tried
sudo xcode-select --switch /Applications/Xcode.app
is there any solution ??
The text was updated successfully, but these errors were encountered: