diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeed06980..030b81415 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 1c4aa4cfd..000000000 --- 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/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 2d734c618..6ebe9a469 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 453fa9469..cb6a173ab 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 ``` @@ -1450,10 +1447,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 6462e9d5b..000000000 --- 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