refactor: commit Xcode project and build it directly in CI
Some checks failed
swift-macos-arm64 / swift-macos-arm64 (push) Failing after 3s

This commit is contained in:
Gremlin 2026-03-21 16:11:17 +01:00
parent c22efbc99d
commit 1ed4f8ef61
4 changed files with 2 additions and 63 deletions

View File

@ -20,20 +20,6 @@ jobs:
xcodebuild -version xcodebuild -version
swift --version swift --version
- name: Install XcodeGen
run: |
set -eu
if ! command -v xcodegen >/dev/null 2>&1; then
brew install xcodegen
fi
xcodegen --version
- name: Generate Xcode project
run: |
set -eu
chmod +x ./scripts/generate-xcodeproj.sh
./scripts/generate-xcodeproj.sh
- name: Build app - name: Build app
run: | run: |
set -eu set -eu

View File

@ -8,10 +8,9 @@ A modern macOS SwiftUI/Xcode app for exercising main application window capabili
- sheets and confirmation dialogs - sheets and confirmation dialogs
- secondary utility window - secondary utility window
- simple menu-bar / tray integration - simple menu-bar / tray integration
- Xcode project generation via XcodeGen for modern Xcode workflows and previews - committed Xcode project for direct builds in Xcode and CI
## Layout ## Layout
- `SwiftTrayDemo/` — Swift source for the macOS app - `SwiftTrayDemo/` — Swift source for the macOS app
- `project.yml` — XcodeGen spec - `SwiftTrayDemo.xcodeproj/` — committed Xcode project
- `scripts/generate-xcodeproj.sh` — generates `SwiftTrayDemo.xcodeproj`
- `.gitea/workflows/swift-macos-arm64.yml` — native Apple Silicon CI build - `.gitea/workflows/swift-macos-arm64.yml` — native Apple Silicon CI build

View File

@ -1,38 +0,0 @@
name: SwiftTrayDemo
options:
minimumXcodeGenVersion: 2.38.0
deploymentTarget:
macOS: '14.0'
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: io.swissline.swifttraydemo
SWIFT_VERSION: 5.10
MACOSX_DEPLOYMENT_TARGET: 14.0
GENERATE_INFOPLIST_FILE: YES
INFOPLIST_KEY_NSHighResolutionCapable: YES
INFOPLIST_KEY_LSApplicationCategoryType: public.app-category.developer-tools
CODE_SIGNING_ALLOWED: NO
CODE_SIGNING_REQUIRED: NO
CODE_SIGN_IDENTITY: ''
ENABLE_DEBUG_DYLIB: YES
targets:
SwiftTrayDemo:
type: application
platform: macOS
sources:
- SwiftTrayDemo
settings:
base:
PRODUCT_NAME: SwiftTrayDemo
PRODUCT_MODULE_NAME: SwiftTrayDemo
INFOPLIST_KEY_CFBundleDisplayName: SwiftTrayDemo
INFOPLIST_KEY_CFBundleName: SwiftTrayDemo
INFOPLIST_KEY_CFBundleExecutable: SwiftTrayDemo
INFOPLIST_KEY_CFBundleIdentifier: io.swissline.swifttraydemo
INFOPLIST_KEY_CFBundleShortVersionString: '1.0'
INFOPLIST_KEY_CFBundleVersion: '1'
INFOPLIST_KEY_LSMinimumSystemVersion: '14.0'
scheme:
testTargets: []
gatherCoverageData: false

View File

@ -1,8 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
if ! command -v xcodegen >/dev/null 2>&1; then
echo "xcodegen not found. Install with: brew install xcodegen" >&2
exit 1
fi
cd "$(dirname "$0")/.."
xcodegen generate