Private
Public Access
1
0

fix(ci): add xcodegen project.yml and generate xcodeproj before archive

SPM executableTarget is treated as a CLI tool by xcodebuild, producing
Products/usr/local/bin instead of a .app bundle. xcodegen generates a
proper application target with PRODUCT_TYPE=com.apple.product-type.application.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 12:47:12 +01:00
parent b7e4931e64
commit 7be2ef27b9
3 changed files with 52 additions and 0 deletions

View File

@@ -20,9 +20,15 @@ workflows:
# GITEA_TOKEN — set this in Codemagic App Settings → Environment variables (mark as secret)
scripts:
- name: Generate Xcode project
script: |
brew install xcodegen
xcodegen generate --spec project.yml
- name: Build (unsigned)
script: |
xcodebuild archive \
-project SilverApple.xcodeproj \
-scheme SilverApple \
-destination "generic/platform=iOS" \
-configuration Release \