From c78e872abdfde7ee71357af99df73b7e7c9ed412 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 4 Dec 2026 13:57:46 +0100 Subject: [PATCH 1/2] chore(ci): disable CocoaPods publishing --- .github/workflows/ci.yml | 2 -- .github/workflows/publish-ios.yml | 30 ------------------------------ ARCHITECTURE.md | 5 +---- scripts/native-podspec.sh | 15 --------------- 4 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 .github/workflows/publish-ios.yml delete mode 100644 scripts/native-podspec.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeed069807..030b814153 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,8 +114,6 @@ jobs: - run: npm install - run: npm run verify working-directory: ./ios -# - name: Validate native podspec -# run: sh ./scripts/native-podspec.sh lint test-android: runs-on: ubuntu-latest timeout-minutes: 30 diff --git a/.github/workflows/publish-ios.yml b/.github/workflows/publish-ios.yml deleted file mode 100644 index 1c4aa4cfd1..0000000000 --- a/.github/workflows/publish-ios.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Publish Native iOS Library - -on: - workflow_call: - secrets: - COCOAPODS_TRUNK_TOKEN: - required: true - workflow_dispatch: - -jobs: - publish-ios: - runs-on: xcode-27 - timeout-minutes: 30 - steps: - - run: sudo xcode-select --switch /Applications/Xcode_27.0.app - - run: xcrun simctl list > /dev/null - - run: xcodebuild -downloadPlatform iOS - - uses: actions/setup-node@v7 - with: - node-version: 24.x - - uses: actions/checkout@v7 - with: - fetch-depth: 0 - ref: 'main' - - name: Install Cocoapods - run: gem install cocoapods - - name: Deploy to Cocoapods - run: sh ./scripts/native-podspec.sh publish - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 453fa9469a..16429ee232 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1450,10 +1450,7 @@ flowchart TB `:capacitor-android:publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository` with `CAP_PUBLISH=true` (which is what activates the `publish-root.gradle` / `publish-module.gradle` scripts and the signing plugin). -- **iOS** (`scripts/native-podspec.sh publish`): `pod trunk push` for - `CapacitorCordova` then `Capacitor`, with `NATIVE_PUBLISH=true` so the podspecs - prefix their source globs with `ios/`. -- **SwiftPM** needs no publish step of its own. Apps resolve the Swift package out of the +- **iOS** needs no publish step of its own. Apps resolve the Swift package out of the `@capacitor/ios` npm, which carries `ios/Package.swift` alongside the sources, so it ships on the npm publish above. A git URL still resolves the root `Package.swift` at the tag Lerna created. diff --git a/scripts/native-podspec.sh b/scripts/native-podspec.sh deleted file mode 100644 index 6462e9d5ba..0000000000 --- a/scripts/native-podspec.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env sh -set -eo pipefail - -case $1 in - lint) - pod lib lint ios/CapacitorCordova.podspec --allow-warnings - pod lib lint ios/Capacitor.podspec --allow-warnings;; - - publish) - export NATIVE_PUBLISH=true - pod trunk push ios/CapacitorCordova.podspec --allow-warnings - pod trunk push ios/Capacitor.podspec --allow-warnings;; - - *) echo "'lint' or 'publish' were not provided. Exiting...";; -esac From f6d9dd41011616a0479c1779d87adf1d64afb646 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 4 Dec 2026 14:00:10 +0100 Subject: [PATCH 2/2] missing changes --- .github/workflows/publish-latest.yml | 5 ----- ARCHITECTURE.md | 3 --- 2 files changed, 8 deletions(-) diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 2d734c6182..6ebe9a4697 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -24,8 +24,3 @@ jobs: ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }} ANDROID_SONATYPE_STAGING_PROFILE_ID: ${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }} CAP_GH_RELEASE_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }} - publish-ios: - needs: publish-npm-latest - uses: ./.github/workflows/publish-ios.yml - secrets: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 16429ee232..cb6a173ab0 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1433,14 +1433,11 @@ flowchart TB D["workflow_dispatch: Publish Latest"] N["publish-npm-latest
lerna version + npm publish --tag latest"] A["publish-android
scripts/publish-android.sh"] - I["publish-ios
scripts/native-podspec.sh publish"] M["Maven Central
com.capacitorjs:core"] - C["CocoaPods trunk
Capacitor, CapacitorCordova"] S["SwiftPM
consumers resolve the git tag"] D --> N N --> A --> M - N --> I --> C N -.->|"tag created by lerna"| S ```