maxim-lobanov / setup-xcode

Set up your GitHub Actions workflow with a specific version of Xcode
MIT License
280 stars 28 forks source link

Error: Could not find Xcode version that satisfied version spec: '14.2' #80

Closed remarkablemark closed 4 months ago

remarkablemark commented 4 months ago

This started failing in GitHub Actions today:

Run maxim-lobanov/setup-xcode@v1
Switching Xcode to version '14.2'...
Available versions:
┌─────────┬──────────┬─────────────┬─────────────┬────────┬──────────────────────────────────┐
│ (index) │ version  │ buildNumber │ releaseType │ stable │               path               │
├─────────┼──────────┼─────────────┼─────────────┼────────┼──────────────────────────────────┤
│    0    │ '15.4.0' │ '15F5021i'  │   'Beta'    │ false  │  '/Applications/Xcode_15.4.app'  │
│    1    │ '15.3.0' │  '15E204a'  │    'GM'     │  true  │  '/Applications/Xcode_15.3.app'  │
│    2    │ '15.2.0' │  '15C500b'  │    'GM'     │  true  │  '/Applications/Xcode_15.2.app'  │
│    3    │ '15.1.0' │   '15C65'   │    'GM'     │  true  │  '/Applications/Xcode_15.1.app'  │
│    4    │ '15.0.1' │  '15A507'   │    'GM'     │  true  │ '/Applications/Xcode_15.0.1.app' │
│    5    │ '14.3.1' │  '14E300c'  │    'GM'     │  true  │ '/Applications/Xcode_14.3.1.app' │
└─────────┴──────────┴─────────────┴─────────────┴────────┴──────────────────────────────────┘
Error: Could not find Xcode version that satisfied version spec: '14.2'

Does this mean Xcode version 14.2 is no longer supported?

maxim-lobanov commented 4 months ago

Hi @remarkablemark , What image label do you use in YAML workflow?

If it is runs-on: macos-latest, you could be impacted by macos-latest migration. GitHub Actions team is currently migrating macos-latest to point to MacOS 14 instead of MacOS 12 so your workflows might be switched automatically. See https://github.com/github/roadmap/issues/926 and https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/ for details.

The mitigation for this issue is updating workflow YAML to pin to specific macos version runs-on: macos-12 or runs-on: macos-13. Both these images still contain Xcode 14.2 according to docs: https://github.com/actions/runner-images?tab=readme-ov-file#available-images

Does this mean Xcode version 14.2 is no longer supported?

MacOS 13 will be supported one more year at least. As for the MacOS 12, not sure when it will be deprecated.

remarkablemark commented 4 months ago

@maxim-lobanov thanks for the response! We're using macos-latest so that's probably the reason. I was able to upgrade the Xcode version to 14.3 so it's no longer throwing an error.