[MacPorts] #61236: ld64 not defaulting to ld64_xcode on Catalina, causing TAPI link errors

MacPorts noreply at macports.org
Mon Sep 28 18:15:33 UTC 2020


#61236: ld64 not defaulting to ld64_xcode on Catalina, causing TAPI link errors
----------------------+----------------------
  Reporter:  mascguy  |      Owner:  kencu
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.3
Resolution:           |   Keywords:
      Port:  ld64     |
----------------------+----------------------

Comment (by mascguy):

 Okay, now things make sense...

 I added the lines to output the Xcode version, and the result is 'none'.
 After perusing some of the older MacPorts issues, I realized the problem:
 When installing Xcode, I include the version in the path. For example,
 Xcode 12 is located at '/Applications/Xcode-12.0.app'.

 That's being done for several reasons, one being that it allows me to have
 multiple Xcode versions installed side-by-side. Indeed, in my 10.15
 installation, two versions are installed:

 {{{
 /Applications/Xcode-11.6.app
 /Applications/Xcode-12.0.app
 }}}

 (I realize that side-by-side Xcode installs can be problematic,
 particularly in terms of user account preferences. But let's avoid that
 discussion, unless it's absolutely critical...)

 In any case, the command-line tools are always installed at their standard
 location, '/Library/Developer/CommandLineTools'. Otherwise everything
 breaks. :-)

 So... I suppose I could create a soft link at '/Applications/Xcode.app',
 referring to the latest/preferred version. Under 10.15, it would resolve
 to Xcode 12.

 Let me know your thoughts, and thanks again for the assistance!

-- 
Ticket URL: <https://trac.macports.org/ticket/61236#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list