[MacPorts] #64281: freac @1.1.4: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

MacPorts noreply at macports.org
Fri Dec 24 11:30:41 UTC 2021


#64281: freac @1.1.4: xcode-select: error: tool 'xcodebuild' requires Xcode, but
active developer directory '/Library/Developer/CommandLineTools' is a
command line tools instance
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  janosch
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.7.1
 Keywords:              |       Port:  freac
------------------------+----------------------
 Building freac succeeds but the log contains a bunch of junk like this:
 {{{
 :info:build xcode-select: error: tool 'xcodebuild' requires Xcode, but
 active developer directory '/Library/Developer/CommandLineTools' is a
 command line tools instance
 :info:build bash: line 1: [: -le: unary operator expected
 :info:build xcode-select: error: tool 'xcodebuild' requires Xcode, but
 active developer directory '/Library/Developer/CommandLineTools' is a
 command line tools instance
 :info:build bash: line 1: [: -eq: unary operator expected
 :info:build xcode-select: error: tool 'xcodebuild' requires Xcode, but
 active developer directory '/Library/Developer/CommandLineTools' is a
 command line tools instance
 :info:build bash: line 1: [: -ge: unary operator expected
 :info:build make[1]: Entering directory `/opt/local/var/macports/build
 /_Users_rschmidt_macports_macports-ports-ryandesign-
 fork_audio_freac/freac/work/freac-1.1.4/components'
 :info:build cd extension &&
 /Library/Developer/CommandLineTools/usr/bin/make  && cd ..
 :info:build xcode-select: error: tool 'xcodebuild' requires Xcode, but
 active developer directory '/Library/Developer/CommandLineTools' is a
 command line tools instance
 :info:build bash: line 1: [: -le: unary operator expected
 :info:build xcode-select: error: tool 'xcodebuild' requires Xcode, but
 active developer directory '/Library/Developer/CommandLineTools' is a
 command line tools instance
 :info:build bash: line 1: [: -eq: unary operator expected
 :info:build xcode-select: error: tool 'xcodebuild' requires Xcode, but
 active developer directory '/Library/Developer/CommandLineTools' is a
 command line tools instance
 :info:build bash: line 1: [: -ge: unary operator expected
 }}}
 If the port needs a full Xcode installation, it should specify `use_xcode
 yes`. However, looking in to Makefile-options, it looks like it's just
 using the Xcode version to decide what `-arch` flags and other similar
 flags to add. MacPorts probably doesn't want any of that, since MacPorts
 selects which `-arch` flags to use, so all of that should probably be
 ripped out of Makefile-options.

-- 
Ticket URL: <https://trac.macports.org/ticket/64281>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list