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/

Filter by
Sorted by
Tagged with
-1 votes
0 answers
24 views

Upgraded command line tools for macOS 13.5.2, to version: 15.0.0.0.1.1694021235 and now get mysterious error from my Homebrew g++ compiler:

-macosx_version_min has been renamed to -macos_version_min 0 0x106e2df43 __assert_rtn + 64 1 0x106d2ff43 ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc ...
Carlo Tambuatco's user avatar
0 votes
0 answers
15 views

xcode 15, c++ compilation errors

I just installed xcode 15 (because git wouldn't work without doing so). I didn't note what version I had before. Now I can't compile some c++ code, which was compiling perfectly well before. when I ...
jms547's user avatar
  • 201
-1 votes
1 answer
57 views

Cannot install homebrew on macOS 14 pre-release

I have a fresh Macbook Pro M2 running MacOS 14 pre-release. I attempt to install homebrew from the bash-line on https://brew.sh At this point: ==> Installing the Command Line Tools (expect a GUI ...
P i's user avatar
  • 29.1k
0 votes
1 answer
35 views

Can Xcode build native Intel binaries on a M1 Mac from command line tools?

This is an additional question to this. I also want to compile a universal binary (or two separate ones for x86_64 and arm64). However, I am not using Xcode, but the Xcode command line tools. So far, ...
gernophil's user avatar
  • 189
1 vote
0 answers
612 views

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/...
valley's user avatar
  • 167
0 votes
0 answers
32 views

unable to monitor events in command line tool app in macOS

New to macOS and trying some PoCs. Following is code that runs well if I choose the Project template as App, however, when I used Command Line Tool as the Project template in XCode, I do not receive ...
vibhu's user avatar
  • 1,667
0 votes
1 answer
244 views

How to update ZLIB version in MacOS CommandLine Tools from version "1.2.11" to "1.2.13" to use CMake?

I am attempting to run a Geant4 simulation installed via Conda. To do so, it requires compiling "cmake". Though all of the packages required my Geant4 are up-to-date, a set library files ...
Alexander Yelland's user avatar
-2 votes
1 answer
251 views

Xcode 14.2 Unable to close provisioning ledger entry because not all of its subentries are closed

Xcode 14.2 command line tools archive failed. xcodebuild -allowProvisioningUpdates \ -workspace $WORKSPACE \ -scheme $SCHEME \ archive \ -configuration Release \ -archivePath $ARCHIVEPATH \ ...
Steve Lai's user avatar
  • 633
0 votes
0 answers
76 views

Mac - Appium - How to setup Xcode simulator with specific OS version and .app file through command line

While setting up Appium on Mac, I am stuck at a point where we have got .app file to automate on an iphone simulator. I am able to launch app which comes with .xcodeproj on Xcode. But now I have an ...
Amit Verma's user avatar
1 vote
0 answers
93 views

is there any options to change bundle identifier while generating the build using terminal

i) is it possible to change the Bundle identifier and Provisional Profiles in Codebase while generating the Archive File and IPA file. ii) is it possible to change the Application name while ...
Bhargav Subbarao's user avatar
0 votes
0 answers
55 views

Xcode don't terminate "Run(Build) Pre-action" and execute main.cpp for debug

thank you for your help, I use "Build Pre-action" or "Run Pre-action" in Xcode. My goal is to execute another server-like program before executing main.cpp, and not to close it. ...
pekkabear's user avatar
3 votes
3 answers
3k views

Could not get the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues

i updated os 12.3 to 13.1, xcode 13.1 to 14.1 and installed commandline tools, react native app running through xcode but not running with command line, getting below error 2022-12-13 16:36:47.584 ...
Joshi G's user avatar
  • 463
-1 votes
1 answer
56 views

CNCopyCurrentNetworkInfo getting nil when app is created through command line tools

My app's deployment target is iOS 13. So I am using CNCopyCurrentNetworkInfo for getting the wifi SSID information. I am facing a strange issue only when I archive and distribute my enterprise app ...
nithindev.n's user avatar
0 votes
1 answer
80 views

Compile and execute cpp in xcode, and add additional execution instructions, Such as iconv command

Sorry, I'm new to Xcode and not very familiar with it, I use Xcode (command line tool project with external build system) to compile cpp files and automatically execute cpp unix executable files. ...
pekkabear's user avatar
0 votes
0 answers
100 views

How do you keep XCode Command Line Tools up to date on OS X?

I have the XCode Command Line Tools installed with xcode-select --install, but I don't know how to check whether they're up to date or how to update them. What I Want To Know: How do I check which ...
gkeenley's user avatar
  • 6,098
0 votes
0 answers
195 views

rvm ruby installation issue: ld: building for iOS, but linking in object file built for iOS Simulator

I'm trying to install ruby@2.7.4 using rvm but have been struggling with errors for the past day. I have checked that my Xcode version is up to date (14.1) and Command Line Tools (14.1) on macOS ...
Ken's user avatar
  • 1,185
0 votes
1 answer
494 views

Xcode CommandLineTools installed but still getting the error: Xcode alone is not sufficient on Monterey

I have MacOS Montery 12.3.1 and I have already installed Xcode and installed CommandLineTools long time ago. I have Xcode-select version: xcode-select version 2395. Now, while trying to install heroku ...
DoMaxBa's user avatar
  • 29
6 votes
2 answers
3k views

Can't compile fortran on MacOS Monterey: ld: unsupported tapi file type '!tapi-tbd' in YAML file

I am facing an error whenever I try to compile fortran code: % gfortran Testing_Fortran.f90 -o Testing_Fortran ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/...
DdDani20's user avatar
1 vote
0 answers
232 views

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 ...
Brodan's user avatar
  • 152
0 votes
1 answer
80 views

programmatically xcode build(ios library) -is it possible?

I have mac descktop app(flutter, small obfuscator for objective-c code). after obfuscation of the source code, the user builds a ios library in XCode. is it possible to start the build process from my ...
FetFrumos's user avatar
  • 5,426
0 votes
1 answer
579 views

Unable to switch Command Line Tools version from MacOSX13 to MacOSX12

I installed the command line tools 14.1_beta_3 (SDK MacOSX13.0.sdk) and I cannot switch back to use the command line tools for an SDK that is compatible with software I am trying to build. I have both ...
Jake1164's user avatar
  • 12.3k
4 votes
1 answer
648 views

xcode-select: Failed to locate 'clang'

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'm getting this error: The &...
Jose Manuel's user avatar
63 votes
4 answers
10k views

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: ...
poundifdef's user avatar
  • 18.8k
33 votes
6 answers
7k views

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 ...
neoswf's user avatar
  • 4,730
2 votes
1 answer
10k views

The "Python" command requires the command line developer tools loop with Xcode 13.4.1 on macOS 12.5

My setup is 2021 MBP with M1 Pro processor, macOS 12.5 and Xcode 13.4.1. I'm building an app using NativeScript and I can't release the app because every time I go to product > archive Xcode says &...
Andrew Mykhalchuk's user avatar
0 votes
1 answer
182 views

What is the difference between CommandLineTools, MacosSDK and XCode?

My main confusion comes from these products seem to each have their own release versions and sometimes, these versions get mixed up and thus, making it very hard to know which version of build tools ...
naguyihs's user avatar
1 vote
0 answers
1k views

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 ...
Theo Deep's user avatar
  • 670
1 vote
1 answer
469 views

Installing TinyGo results in Command Line Tools (CLT) SDK folder names mismatch on macOS

When following the TinyGo Quick Install Guide for macOS I'm running into the following error: Error: The contents of the SDKs in your Command Line Tools (CLT) installation do not match the SDK folder ...
Grokify's user avatar
  • 15.1k
5 votes
1 answer
1k views

Xcode build fails and repetitive requires command line developer tools install

I have updated Xcode to Version 13.4.1 (13F100), Then tried to run a flutter project Launching lib/main.dart on iPhone SE (3rd generation) in debug mode... Xcode build done. ...
hossameldinmi's user avatar
4 votes
1 answer
398 views

GPerfTools not showing function names

I am new to profiling and am trying to create a flat profile for my c++ project. Looks like gperftools is popular. I installed gperftools using Homebrew and followed this simple tutorial When I try ...
whitepatch's user avatar
0 votes
1 answer
923 views

`Executed 0 tests, with 0 failures (0 unexpected)` when running individual test cases in Xcode

When I run tests in Xcode, as long as I run all the tests collectively they execute normally. However, if I run only one individual test class or one individual test function within a test class, it ...
wristbands's user avatar
  • 1,031
0 votes
0 answers
271 views

Building ncnn with Xcode Command Line Tools

This is my first time using Xcode Command Line Tools (13.2.1). I am following the instructions on how to build ncnn here: https://github.com/Tencent/ncnn/wiki/how-to-build#build-for-macos Do I need ...
greenzebra's user avatar
7 votes
1 answer
6k views

Apple command line tools vs XCode command line tools?

I downloaded XCode and made sure the XCode command line tools were installed by going to Preferences -> Locations: The Problem: When I run brew upgrade it throws this error: Error: python@3.10: ...
RNdev's user avatar
  • 953
1 vote
1 answer
611 views

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 ...
KieranC's user avatar
  • 57
1 vote
1 answer
1k views

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 ...
justdan0227's user avatar
  • 1,364
5 votes
0 answers
769 views

React Native run-ios --device not working after upgrading xcode command line tools

The question is pretty self explanatory: I just updated the XCode Command Line Tools and now the npx react-native run-ios --device is giving this error: npx react-native run-ios --device info Found ...
Ale TheFe's user avatar
  • 1,540
0 votes
1 answer
100 views

uname/ps/readlink/dirname - command not found issue in react-native while installing

I am getting this error while installing my react-native project - /Users/username/.rvm/scripts/rvm: line 12: uname: command not found /Users/username/.rvm/scripts/rvm: line 29: ps: command not found /...
Dev AKS's user avatar
  • 512
1 vote
1 answer
494 views

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....
was_777's user avatar
  • 599
-1 votes
2 answers
1k views

Removing older versions of Command Line Tools

I was analyzing my files with CleanMyMac's space lens tool, and found multiple versions of command line tools in /Library/Developer/CommandLineTools. Is it safe to remove the older versions? I don't ...
Prakhar Gurunani's user avatar
0 votes
1 answer
147 views

Launching Pip3 install package_name on macOS

I have installed homebrew this morning and I added the path in /Users/$USER/.homebrew/bin since this is the correct path for those who care about folder permissions in /usr/local Taken from these ...
Alessandro's user avatar
1 vote
1 answer
232 views

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 ...
Max's user avatar
  • 799
0 votes
0 answers
186 views

Compilation failed after R update: stdio.h "Nonnull"

I recently upgraded my R version to 4.1.1 using HomeBrew. After straightening out some path problems in R, I tried re-installing my old packages, but I get a very long series of errors which seem to ...
Holt Dwyer's user avatar
2 votes
1 answer
995 views

Has anyone managed to filter logs in the macos `log stream` command using pid?

I've been wrecking my brain trying to get the log stream command on macos to work with a passed in pid. I have an app FooBar with a pid 12345. The command: log stream --debug --info --process FooBar ...
gran_profaci's user avatar
  • 8,097
0 votes
1 answer
6k views

macOS Big Sur: When I run `npm install`, I get an error during the step `node-gyp rebuild`: `gyp: No Xcode or CLT version detected!`

On macOS Big Sur, with node v14.17.1, when I run npm install (for the package jq) then I get the error (during the installation of the dependent node_module contextify): node-gyp rebuild No receipt ...
Pierre F's user avatar
  • 1,342
3 votes
1 answer
2k views

ld: unsupported tapi file type '!tapi-tbd' in YAML file '<...>' for architecture x86_64

I'm getting the following error when I try to build one of my projects: ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem....
user3076399's user avatar
5 votes
2 answers
8k views

Command Line Tools Not Found MacOS Monterey XCode13

I´m currently trying to resign a wrapped app from mobileiron with terminal. When I try it says: "sign_wrapped_app.sh Version 4.7.0.0 Usage: sign_wrapped_app.sh -i [-b -e -p -s -d -o ] ...
jonasroman's user avatar
11 votes
2 answers
5k views

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 ...
Kardasis's user avatar
  • 901
13 votes
4 answers
8k views

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 ...
Usman Shahid's user avatar
2 votes
1 answer
2k views

'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 | ...
Nibin's user avatar
  • 97
0 votes
1 answer
615 views

Issue with install xcode while installing ruby, rails and postgresql on macOS Big Sur 11.2.3

UPDATES I'm having some issues on a new mac m1 and my install of ruby, rails, xcode and postgresql First attempt: ##What I did ? Installing homebrew, ruby, rails, postgresql OS: macOS Big Sur Version ...
elviajero34's user avatar