[MacPorts] #61236: $xcodeversion does not calculate the proper version when Xcode is installed in a non-default path.

MacPorts noreply at macports.org
Mon Sep 28 20:20:31 UTC 2020


#61236: $xcodeversion does not calculate the proper version when Xcode is installed
in a non-default path.
----------------------+----------------------
  Reporter:  mascguy  |      Owner:  kencu
      Type:  defect   |     Status:  reopened
  Priority:  Normal   |  Milestone:
 Component:  base     |    Version:  2.6.3
Resolution:           |   Keywords:
      Port:           |
----------------------+----------------------

Comment (by chrstphrchvz):

 Replying to [comment:7 mascguy]:
 > Versions of 'ld64' installed:
 > {{{
 > $ port -v installed | ggrep ld64
 >   ld64 @3_3 (active) platform='darwin 19' archs='x86_64'
 date='2020-08-17T11:50:51-0400'
 >   ld64-latest @450.3_0+llvm90 (active) platform='darwin 19'
 archs='x86_64' date='2020-08-17T11:50:47-0400'
 > }}}

 This is exactly what I observed as described in #60893, so I don't think
 it's just the reporter (or me).

 Replying to [comment:11 kencu]:
 > There was another user a few weeks ago on Catalina who also had the
 wrong ld64 installed, but his was defaulting properly, so easily fixed,
 whereas yours, for some reason, is not.

 Not sure if I'm the user in question, because I manually installed `ld64
 +ld64_xcode`—it did not eventually default properly.

 The other thing that might've been unusual about my setup is that I have
 only the command line tools, not the full Xcode, so `$xcodeversion` is
 `none` for me.

 I would expect `$xcodeversion` to be influenced using `xcode-select`
 (likely a better way of switching Xcode versions than with links), if it
 isn't already; and for MacPorts in general to not rely on Xcode being at
 /Applications/Xcode.app.

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


More information about the macports-tickets mailing list