Friday, August 12, 2022
HomeApplexcode - How one can construct .xcodeproj information with the Command Line...

xcode – How one can construct .xcodeproj information with the Command Line Instruments Bundle when xcodebuild does not work?

For the needs of automated testing, I am seeking to construct an XCode challenge file from the command line on a headless Mac (which I imagine is operating Monterey). The machine I am hoping to construct issues on has solely the Command Line Instruments Bundle put in, with out a full XCode set up. (For varied technical causes, the sysadmin in cost doesn’t need to set up the complete XCode.) The method I am trying to make use of has labored beforehand on different Macs (albeit ones with full XCode installs).

The problem I am operating into is that utilizing xcodebuild to launch the construct of the .xcodeproj file is failing with the error message:

xcode-select: error: software 'xcodebuild' requires Xcode, however energetic developer listing '/Library/Developer/CommandLineTools' is a command line instruments occasion

The apple technical word “Constructing from the Command Line with Xcode FAQ” appears to indicate that utilizing the xcodebuild command ought to be doable with the Command Line Instruments Bundle. Nonetheless, in trying to find the above error message, a lot of the recommendation on fixing it appears to boil all the way down to “set up the complete XCode, then level xcode-select to that set up”.

Is it doable to make use of xcodebuild with simply the Command Line Instruments Bundle, or is that this one thing that wants a full XCode set up? If xcodebuild does want a full XCode set up, what’s the really useful approach of constructing .xcodeproj information with simply the Command Line Instruments Bundle?

P.S. It looks like numerous the pages on the web associated to the above error message are Node.js associated. For my concern, Node.js shouldn’t be concerned in any approach. We’re invoking xcodebuild immediately for compilation of a strictly C++ challenge.



Please enter your comment!
Please enter your name here

Most Popular