Questions tagged [xcode-command-line-tools]

Use this tag for Xcode Command Line Tools. Which are tools for software developers that run on the command line, in the Terminal application.You can see a complete list of Xcode Command Line Tools by listing the contents of the directory /Library/Developer/CommandLineTools/usr/bin/

106 questions
135
votes
6 answers

Pass deep link into iOS Simulator?

I would like to find an easier way to call deep links in the iOS simulator. On Android you can use ADB to pipe links into the simulator by using the console. Is there a similar way or a workaround to open deep links with the latest iOS Simulator?
patreu22
  • 2,988
  • 4
  • 22
  • 31
111
votes
6 answers

How to set Xcode version as default in my Mac?

Right now I have Xcode 6.0 (Beta) as a default version of my Xcode, but today I installed Xcode 6 from App Store and so I want to set Xcode 6 as a default version. How can I set it?
user1954352
  • 1,577
  • 4
  • 14
  • 16
96
votes
3 answers

xcrun: error: unable to find utility "xctest", not a developer tool or in PATH

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…
Sayan Sen
  • 1,654
  • 3
  • 16
  • 26
65
votes
9 answers

How to update Xcode Command Line Tools?

I am trying to update Command line tools on my mac osx. ~ softwareupdate --list Software Update Tool Copyright 2002-2015 Apple Inc. Finding available software Software Update found the following new or updated software: * Command Line Tools…
software_writer
  • 3,941
  • 9
  • 38
  • 64
63
votes
4 answers

xcode-select cannot locate clang, even after installing command line tools

When I try to run the clang command, I get the following error: xcode-select: Failed to locate 'clang', requesting installation of command line developer tools. And then I receive this pop-up: However, no matter how many times I click "Install" -…
poundifdef
  • 18,726
  • 23
  • 95
  • 134
34
votes
2 answers

How to build Xcode project from the command line?

I've tried reading the Xcode Tools documentation Apple provides, so that I can use the Terminal to build a .app file and run the resulting app on the Simulator. Essentially what I want to do is do the same thing as Cmd + R does on Xcode. So far I've…
14wml
  • 4,048
  • 11
  • 49
  • 97
33
votes
6 answers

The git (or python) command requires the command line developer tools

This knowledge post isn't a duplication of other similar ones, since it's related to 12/September/2022 Xcode update, which demands a different kind of solution I have come to my computer today and discovered that nothing runs on my terminal Every…
neoswf
  • 4,730
  • 6
  • 39
  • 59
25
votes
8 answers

Unable to run git on Mac OS Big Sur

Unable to run git on new MacBook running Big Sur When I try to run git, I receive the following error: xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): could not use…
kdub1312
  • 803
  • 2
  • 9
  • 19
21
votes
3 answers

How can I install zlib on Mac OS X Mojave (10.14)?

I recently upgraded from Sierra to Mojave. After that I tried to use pyenv install 3.5.6. This uses homebrew in the background to try to install python, which fails with zipimport.ZipImportError: can't decompress data; zlib not available. The same…
geoidesic
  • 4,649
  • 3
  • 39
  • 59
18
votes
5 answers

Find out the path location to Command Line Tools for Xcode

I didn't want to install the whole Xcode, so I just downloaded the command line tools for Xcode. I am trying to install ruby 1.9.3 via rvm. However, rvm complains that no xcode is selected: xcode-select: Error: No Xcode is selected. Use…
Alexander Popov
  • 23,073
  • 19
  • 91
  • 130
16
votes
1 answer

Installing Xcode command line tools

I performed a fresh install of macOS Mojave 10.14. Immediately after that I installed Xcode Version 10.0 (10A255) from the Mac App Store. Now, I wish to install Homebrew which requires Xcode command line tools to be installed. My understanding is…
Nimesh Neema
  • 1,528
  • 2
  • 17
  • 44
15
votes
2 answers

Skip installation of Command Line Tools when installing Homebrew on macos

I am installing homebrew on macOS High Sierra 10.13. I have already installed the Command Line Tools for Xcode which is a requirement for homebrew. When installation of homebrew starts I am forced to install command line tools (or abort). When I do…
Thomas.maher
  • 151
  • 1
  • 1
  • 3
13
votes
4 answers

Terminal does not find the installed Xcode

i have download and installed the Xcode 12.4 from apple site (not apple store) because I am using macOS Catalina 10.15.7 and the latest Xcode version right now requires at-least BigSur 11.0. I have also installed the latest Xcode command line…
Usman Shahid
  • 621
  • 6
  • 13
11
votes
2 answers

xcode command line tools not able to locate git

On Big Sur, I had XCode CLT installed, but not xcode itself. Git was working fine. Then I installed XCode and now when I try to run git I get the following message: git: error: Failed to determine realpath of…
Kardasis
  • 901
  • 12
  • 20
11
votes
0 answers

`xcodebuild` not working from terminal

After I used migration assistant to migrate data from my old mac to a new one I can no longer use Xcode command line tools. Whenever I run any xcodebuild command in terminal (even xcodebuild with no parameters) I get the following error: dyld:…
1
2 3 4 5 6 7 8