I am trying to install pods for my project, but it fails with this error
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
WARNING: The active Xcode command line tools, as returned by 'xcode-select -p', are not from Xcode.
The newest version of Xcode will be used instead.
Print: Entry, ":CFBundleVersion", Does Not Exist
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
This will install the command line tools.
You can also get it from here:
Apple Downloads and install it.
Related
Has anyone with macOS 13 (Ventura) managed to install MongoDB? Getting the following error:
==> Installing mongodb-community#5.0 from mongodb/brew
Error: Your Command Line Tools (CLT) does not support macOS 13.
It is either outdated or was modified.
Please update your Command Line Tools (CLT) or delete it if no updates are available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 14.1.
Reinstalled the Command Line Tools for Xcode 14.1, but still getting the same error.
I followed the instructions on MongoDB's site: https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/
Ideally I need 5.0 for a project, but I've also tried installing 6.0 and the same error occurs.
The following steps should fix the issue. I had the same issue.
Uninstall the existing CLT
sudo rm -rf /Library/Developer/CommandLineTools
Download the Command Line Tools for Xcode 14.1 Release Candidate 2 (latest as of writing) from here: https://developer.apple.com/download/all/?q=Command%20Line%20Tools%20for%20Xcode
Install the downloaded package
brew upgrade
And then retry installing MongoDB and the installation should pass through.
I am a newbie in mongo db and trying to install in my Mac Big Sur OS. It is a public beta OS.
While install the Mongo DB, I am getting the below error:
Error: An exception occurred within a child process:
NoMethodError: undefined method 'path' for nil:NilClass
Did you mean paths?
I have the latest Xcode installed. The steps I followed are from Official MongoDB documentation url.
Please help if there is a solution.
My case wasn't with installing MongoDB, but had the same problem when installing Vault using Homebrew.
After running brew doctor, my problem was with outdated Command Line Tools.
I followed the instruction shown in the error message.
However, the first solution didn't updated my command line tools.
$ softwareupdate --all --install --force
So I followed the second solution, and was able to install Vault successfully.
$ sudo rm -rf /Library/Developer/CommandLineTools
$ sudo xcode-select --install
I have been trying to install cocoapods but I keep getting an error. I have tried the following commands and get the same result.
sudo gem install cocoapods
sudo gem install -n /usr/local/bin cocoapods
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20200726-37338-rvqxhv.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/ffi-1.13.1/gem_make.out
After a lot of searching I finally came across a solution that I believe works. If you are use Mac OS Catalina you need to use Brew.
Open Terminal on your Mac.
Now, run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
Install cocoapods using brew
brew install cocoapods
cocoapods is ready to use now!
I am using Xcode command line tools instead of XCode app in my MAC.
When i use swift --version
I get Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)
I cloned a project with
git clone https://github.com/apple/example-package-dealer.git
cd example-package-dealer
swift run Dealer
I gives me this error:
error: terminated(72): OLDPWD=/Users/sayansen/Work/EdgeAnalytics/Trial TERM_PROGRAM=Apple_Terminal PWD=/Users/sayansen/Work/EdgeAnalytics/Trial/example-package-dealer SHLVL=1 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.9lwBmlYTAx/Listeners HOME=/Users/sayansen LIBRARY_PATH=/usr/local/lib __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 XPC_SERVICE_NAME=0 TMPDIR=/var/folders/kn/v4zm474x52n8zrycxs7nh5c40000gn/T/ LOGNAME=sayansen SHELL=/bin/bash TERM_PROGRAM_VERSION=433 _=/usr/bin/swift PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS CPATH=/usr/local/include SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk XPC_FLAGS=0x0 TERM=xterm-256color USER=sayansen LC_CTYPE=UTF-8 TERM_SESSION_ID=B285E686-2802-48C6-B8CE-03CA8F2314BF xcrun --sdk macosx --find xctest output:
xcrun: error: unable to find utility "xctest", not a developer tool or in PATH
I am not using XCODE.
I already did this:
sudo xcode-select -s /Library/Developer/CommandLineTools
But not helpfull.
How to solve this error without installing XCode?
Assuming you already have Xcode installed:
Start Xcode, select "Preferences -> Locations". Chances are that your Command Line Tools are not set. Select the suggested Xcode-tools location and you are done.
Additional:
You could check with:
xcode-select -p
which tools are set, mine showed:
/Library/Developer/CommandLineTools
After the location in the preferences was set, it showed:
/Applications/Xcode.app/Contents/Developer
(as it should)
Xcode -> Preferences (or command+,)
Locations tab -> Command Line tools section:
Select a tool there and you are done.
Just a wrong path, all the stuff still can be done w/o invoking GUI:
~/% sudo xcode-select -s /Library/Developer/CommandLineTools
~/% sudo xcode-select -p
/Library/Developer/CommandLineTools
~/% sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
~/% sudo xcode-select -p
/Applications/Xcode.app/Contents/Developer
The latest -s command fixes xcrun: error: unable to find utility "xctest" …
I am trying to install homebrew using the command:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
When I do this I get.
It appears Homebrew is already installed. If your intent is to
reinstall you should do the following before running this installer
again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
So I run a
which brew
and I get nothing, just a new line.
I don't want to delete my usr/local.git because there is a lot in my directory. and the
/usr/local/Cellar Doesn't exist and when I cd into /usr/local there is no brew to be found... Which is due to the simlink I'm sure.
Anytime I run a Brew command of some sort I get
brew: command not found
I can't figure out what I am missing here. Any clues? I have search for over an hour and can't find any trace of it, even though the install says it does.
Thoughts?