[Solved] Error: Please upgrade to Xcode 15.1 or higher

Hello. I am currently using GitHub Actions to do multi-platform builds, but suddenly my code is not passing builds.

Surprisingly, the error occurs even without any code changes or version changes.
This error only occurs on mac os.

Also, the Xcode version in GitHub Actions is 13.2.1 and it would be difficult to raise this.
https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#xcode

Here is the information about the error.

/Users/runner/work/utility-clone/utility-clone/lib/JUCE/modules/juce_core/system/juce_CompilerSupport.h:72:4: error: Please upgrade to Xcode 15.1 or higher
  #error Please upgrade to Xcode 15.1 or higher
   ^
1 error generated.
make[2]: *** [Source/CMakeFiles/UtilityClone.dir/PluginEditor.cpp.o] Error 1
make[1]: *** [Source/CMakeFiles/UtilityClone.dir/all] Error 2
make: *** [all] Error 2

With a build that failed here.

Here is the build that was successful

Looking at the macOS images it seems they are using Xcode 15.0.1 by default, I suggest switching to a newer Xcode version. In your builds you can do that either by using a action such as this one or just calling something like this from your builds

- name: Select Xcode version
      run: sudo xcode-select -s '/Applications/Xcode_15.4.app/Contents/Developer'
1 Like

Oh.
For some reason I was only looking at mac OS 11, thank you Anthony.