From b7edbe5683d96bf63d71d77073620a6b5e0d8cab Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 18 Apr 2026 19:33:33 +0200 Subject: [PATCH] Pin Xcode 26.0.1 for release and broaden SPM cache clear MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xcode 26.2 (the new default on macos-26) hits a SwiftPM race where binary xcframework downloads fail with "already exists in file system". Xcode 26.0.1 — the toolchain the last successful release ran against — resolved the same deps cleanly. Also download the iOS platform if the runner image only ships the platform bundled with the default Xcode, and clear SPM cache more broadly rather than only the artifacts dir. --- .github/workflows/release.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ada6288..85ea7862 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,18 @@ jobs: run: | sed -i '' 's/match Development/match AppStore/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/iPhone Developer/iPhone Distribution/' Yattee.xcodeproj/project.pbxproj + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '26.0.1' + - name: Install iOS/tvOS platform SDKs if missing + run: | + sudo xcodebuild -downloadPlatform iOS || true + sudo xcodebuild -downloadPlatform tvOS || true - name: Clear SPM cache - run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts + run: | + rm -rf ~/Library/Caches/org.swift.swiftpm + rm -rf ~/Library/org.swift.swiftpm + rm -rf ~/Library/Developer/Xcode/DerivedData - uses: maierj/fastlane-action@v3.0.0 with: lane: ${{ matrix.lane }} @@ -63,8 +73,14 @@ jobs: run: | sed -i '' 's/match AppStore/match Direct/' Yattee.xcodeproj/project.pbxproj sed -i '' 's/3rd Party Mac Developer Application/Developer ID Application/' Yattee.xcodeproj/project.pbxproj + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '26.0.1' - name: Clear SPM cache - run: rm -rf ~/Library/Caches/org.swift.swiftpm/artifacts + run: | + rm -rf ~/Library/Caches/org.swift.swiftpm + rm -rf ~/Library/org.swift.swiftpm + rm -rf ~/Library/Developer/Xcode/DerivedData - uses: maierj/fastlane-action@v3.0.0 with: lane: mac build_and_notarize