Private
Public Access
1
0

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 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 12:38:48 +01:00
parent a3bfd42759
commit b7e4931e64

View File

@@ -22,11 +22,11 @@ workflows:
scripts: scripts:
- name: Build (unsigned) - name: Build (unsigned)
script: | script: |
xcodebuild build \ xcodebuild archive \
-scheme SilverApple \ -scheme SilverApple \
-destination "generic/platform=iOS" \ -destination "generic/platform=iOS" \
-configuration Release \ -configuration Release \
-derivedDataPath "$CM_BUILD_DIR/DerivedData" \ -archivePath "$CM_BUILD_DIR/SilverApple.xcarchive" \
CODE_SIGNING_ALLOWED=NO \ CODE_SIGNING_ALLOWED=NO \
CODE_SIGNING_REQUIRED=NO \ CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \ CODE_SIGN_IDENTITY="" \
@@ -35,10 +35,10 @@ workflows:
- name: Package IPA - name: Package IPA
script: | script: |
cd "$CM_BUILD_DIR" 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 if [ -z "$APP" ]; then
echo "ERROR: No .app found. Products:" echo "ERROR: No .app found in xcarchive. Contents:"
find DerivedData/Build/Products -type d | head -30 find SilverApple.xcarchive -type d | head -30
exit 1 exit 1
fi fi
echo "Packaging: $APP" echo "Packaging: $APP"