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/
Questions tagged [xcode-command-line-tools]
106 questions
2
votes
1 answer
'fatal error: 'wchar.h' file not found' error with the new macos 11.3 update
I'm totally new to c++ (just started learning from scratch yersterday).
Today I had this macos update to 11.3 and now when I run my c++ code in clion I get this error,
====================[ Build | untitled | Debug…

Nibin
- 97
- 10
2
votes
2 answers
Can I disable or ignore Apple additions to C standard headers?
I'm developing a C application that I would like to be reasonably portable. It builds ok with with gcc and clang on Linux, and with MSVC on Windows. After getting access to a Mac I tried building with the Command Line Tools.
It fails to compile…

codybartfast
- 7,323
- 3
- 21
- 25
2
votes
1 answer
Setup an App Group for MacOS command line tool?
I am creating a runloop in a macOS command line tool to create a background service. I need to setup an App Group for this to enable communication with a Finder Extension.
Xcode does not allow to setup an App Group for command line tool.
Is there…

Makmeksum
- 463
- 1
- 4
- 14
2
votes
2 answers
Unable to open Xcode 10.1. Getting Package Authoring Error
There are two Xcode 10.1 and 11 installed on my Mac wherein 10.1 is default one. I was able to open project using Xcode 10.1 until few hours ago. However, after restarting my mac I'm facing strange issue as described below:
Package Authoring Error:…

Jayprakash Dubey
- 35,723
- 18
- 170
- 177
2
votes
1 answer
Xcode command line tools some headers missing
I recently upgraded my Xcode command line tools and now I get errors when compiling stuff that compiled before the upgrade.
tools/px.c:7:10: fatal error: 'unistd.h' file not found
#include
^~~~~~~~~~
Before this upgrade,…

Erich Neuwirth
- 943
- 7
- 13
2
votes
1 answer
Mac install command line tools for xcode with iOS SDK
I'm trying to install the XCode Command Line Tools so that I can build a library for iOS from the command line.
The entire process from installing the tools to building the library needs to be able to run from the command line for automation.
I've…

Nathan F.
- 3,250
- 3
- 35
- 69
2
votes
2 answers
How to build & run xcodeproj on simulator from command line?
All I want to do is be able to do the same thing as Cmd + Rthat I'm able to do in Xcode, except from the Terminal. But so far look at multiple stack overflow posts and articles have left me lost.
So far I've been able to run the simulator from the…

14wml
- 4,048
- 11
- 49
- 97
1
vote
0 answers
XCode 14.3 doesn't list iOS devices with 16.4
I'm about to upgrade to Xcode 14.3 and installed that version in addition to version 14.2, where i'm switching between those 2 versions by using the command
sudo xcode-select -switch /Applications/Xcode_14.X.app.
When version 14.2 is active i can…

valley
- 157
- 1
- 13
1
vote
0 answers
Can't install python 3.9.1 on M1 with pyenv
I'm trying to install specific versions of python via x86_64 Homebrew and pyenv
I'm getting an error that looks like its caused by Xcode's CommandLineTools. I used to get a ton of errors when installing on M1 but none like this since Xcode got…

Brodan
- 152
- 1
- 18
1
vote
0 answers
An Xcode / CommandLine error: I get 'xcrun: error: unable to load libxcrun' in MacOS Monterey (trying to build 'quabs')
I am trying to run an application (concretely, the quabs QBF solver: https://github.com/ltentrup/quabs), following all of its paths.
git clone https://github.com/ltentrup/quabs.git
cd quabs
git submodule init
git submodule update
mkdir build && cd…

Theo Deep
- 666
- 4
- 15
1
vote
1 answer
Xcode, clang, c++ stdlib: Swift Package using a system library, build fails with 'stdexcept' file not found
I am writing an executable Swift package where I need to use a system library (written in C++).
AFAIK I have the package.swift, module.modulemap and umbrella header file written correctly.
When I add an import for the library in my main.swift file I…

KieranC
- 57
- 6
1
vote
1 answer
re-install xcode12.2 commandline tools on Monterey
I know you can use xcode-select to switch the version of XCode you are using (both 13.2 and 12.2 in my case), however, how do I get back to the 12.2 version of commandline tools. I've downloaded the dmg, however, Monterey won't let me install it…

justdan0227
- 1,374
- 18
- 48
1
vote
1 answer
Getting kexec error when running npm install
I started getting below error with node v12.22.7 and npm 6.14.15 (also tried with node v16.13.1 and npm v8.1.2)
> node-gyp rebuild
CXX(target) Release/obj.target/kexec/src/kexec.o
../src/kexec.cc:19:11: error: no member named 'Handle' in…

was_777
- 599
- 1
- 9
- 28
1
vote
1 answer
clean build/archive fails on xcode13
trying to build or archive using clean command results in:
Could not delete some/build/path/here because it was not created by the build system and it is not a subfolder of derived data.
running the same without clean, works just fine. also,…

Max
- 799
- 1
- 5
- 17
1
vote
0 answers
How can a command line tool print the help text and automatically get the behavior with piping to the more command?
With the command line tools I've built with Swift in Xcode there is an option to print the help text. When there is more text than the height of the terminal window it scrolls past the start of the help text. When viewing man pages the text is…

Brennan
- 11,546
- 16
- 64
- 86