setup-swift icon indicating copy to clipboard operation
setup-swift copied to clipboard

missing DEVELOPER_DIR path: /Applications/Xcode.app/Contents/Developer

Open JMoserCricut opened this issue 1 year ago • 1 comments

Describe the bug Running on self hosted mac runners we get the error: xcrun: error: missing DEVELOPER_DIR path: /Applications/Xcode.app/Contents/Developer This is due to the default for installing latest xcode to not create a symlink

Could be nice to get the DEVELOPER_DIR set to the output from xcode-select -p

Workflow configuration (please complete the following information):

  • Action version (uses): swift-actions/setup-swift@v1
  • Platform (runs-on): macos self hosted
  • Swift version (swift-version): 5.7

JMoserCricut avatar Feb 28 '23 23:02 JMoserCricut

write the env variable DEVELOPER_DIR into ~/.bash_profile for example

export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"

robinmo avatar Jan 08 '24 02:01 robinmo