From b7e4931e6405ecd87339003d5f768ad8ba2e6b37 Mon Sep 17 00:00:00 2001 From: SilverLABS Date: Mon, 6 Apr 2026 12:38:48 +0100 Subject: [PATCH] fix(ci): use xcodebuild archive to produce .app for IPA packaging xcodebuild build on an SPM executableTarget only outputs the module/bundle, not a .app. archive produces a .xcarchive with the .app under Products/. Co-Authored-By: Claude Sonnet 4.6 --- codemagic.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/codemagic.yaml b/codemagic.yaml index cd07798..da7d94d 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -22,11 +22,11 @@ workflows: scripts: - name: Build (unsigned) script: | - xcodebuild build \ + xcodebuild archive \ -scheme SilverApple \ -destination "generic/platform=iOS" \ -configuration Release \ - -derivedDataPath "$CM_BUILD_DIR/DerivedData" \ + -archivePath "$CM_BUILD_DIR/SilverApple.xcarchive" \ CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_REQUIRED=NO \ CODE_SIGN_IDENTITY="" \ @@ -35,10 +35,10 @@ workflows: - name: Package IPA script: | cd "$CM_BUILD_DIR" - APP=$(find DerivedData/Build/Products -name "*.app" -type d | head -1) + APP=$(find SilverApple.xcarchive/Products -name "*.app" -type d | head -1) if [ -z "$APP" ]; then - echo "ERROR: No .app found. Products:" - find DerivedData/Build/Products -type d | head -30 + echo "ERROR: No .app found in xcarchive. Contents:" + find SilverApple.xcarchive -type d | head -30 exit 1 fi echo "Packaging: $APP"