Getting `xcrun: error: unable to find utility "altool", not a developer tool or in PATH`, how can I make `altool` available?

Error message: https://travis-ci.org/github/trufflesuite/ganache/jobs/663747601#L3819

Running Mac OS X 10.13.6, Build Version 17G65, with xcode 11.3.

Anyone know how I can configure things so xcrun can find altool?

According to Customizing the Notarization Workflow | Apple Developer Documentation, it’s available since XCode 10.

You are running an xcode9.4 image.


As checking the config at https://config.travis-ci.com/explore shows, osx_image is not inherited into jobs (presumably because during matrix expansion, os defaults to linux, causing osx_image to be ignored). Reported it at `osx_image` is not inherited into explicitly included jobs.


A workaround is to place osx_image under the OSX job entry:

matrix:
  include:
  - os: osx
    osx_image: xcode11.3
  - os: linux

This was the problem. Thank you so much!

Imprint