[MacPorts] #41138: xcrun: error: unable to exec Xcode native xcrun (Permission denied).

MacPorts noreply at macports.org
Fri Apr 26 07:41:43 UTC 2019


#41138: xcrun: error: unable to exec Xcode native xcrun (Permission denied).
----------------------------+--------------------------------
  Reporter:  mr.nice_365@…  |      Owner:  macports-tickets@…
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.2.1
Resolution:  invalid        |   Keywords:
      Port:                 |
----------------------------+--------------------------------

Comment (by 98B):

 What happened in my case (same error message) turned out to be due to the
 location of Xcode and the permissions that the location entails: the
 edition I had ''xcode-select''ed is installed in `~/Applications`. This
 directory, by default, has permissions set to `drwx------`. Which is not
 good enough for user ''MacPorts'':
 {{{
 $ sudo -u macports /bin/bash
 bash-3.2$ xcrun
 xcrun: error: unable to exec Xcode native xcrun (Permission denied).
 }}}
 (Some ''port'' operations seem to be carried out by this user.) I added
 the user MacPorts to the list of users of `~/Applications` via Finder's
 info dialog ⌘-I, granting Read permissions, and then everything started to
 work as expected. (The permissions of `~/Applications` look like
 `drwx------+`  now.)

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


More information about the macports-tickets mailing list