From cc6add8c480188a1497ee41be20045f06e9224a7 Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Wed, 9 Sep 2026 17:43:17 +0100 Subject: [PATCH] chore: block releases for Capacitor 9 --- .github/workflows/build-and-release.yaml | 8 ++++++++ README.md | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 03f6d66..765f585 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -18,6 +18,14 @@ jobs: runs-on: macos-15 timeout-minutes: 30 steps: + - name: Validate release version + run: | + version="${{ inputs.release-version }}" + major="${version%%.*}" + if [[ ! "$major" =~ ^[0-9]+$ ]] || (( major < 6 || major > 8 )); then + echo "::error::Capacitor $version is not supported by this repository. Starting with Capacitor 9 (see https://github.com/ionic-team/capacitor/pull/8588 PR), the iOS platform is a source-first Swift package built directly from the ionic-team/capacitor repository, so SPM distribution no longer happens here. This repository only releases major versions 6, 7, and 8." + exit 1 + fi - run: | if [[ "${{ inputs.release-version }}" =~ ^[67]\. ]]; then sudo xcode-select --switch /Applications/Xcode_16.2.app diff --git a/README.md b/README.md index 92383b4..c0702a4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # Swift Package Manager Support for Capacitor This repo is for hosting binary xcframework releases of Capacitor and CapacitorCordova for SPM support. + +Only applies to Capacitor major versions 6, 7, and 8. Starting with Capacitor 9, the iOS platform is a source-first Swift package built directly from the [ionic-team/capacitor](https://github.com/ionic-team/capacitor) repository.