From 1ed4f8ef61b8d3b46af92061dbc12a2da80af459 Mon Sep 17 00:00:00 2001 From: Gremlin Date: Sat, 21 Mar 2026 16:11:17 +0100 Subject: [PATCH] refactor: commit Xcode project and build it directly in CI --- .gitea/workflows/swift-macos-arm64.yml | 14 ---------- README.md | 5 ++-- project.yml | 38 -------------------------- scripts/generate-xcodeproj.sh | 8 ------ 4 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 project.yml delete mode 100755 scripts/generate-xcodeproj.sh diff --git a/.gitea/workflows/swift-macos-arm64.yml b/.gitea/workflows/swift-macos-arm64.yml index 33b980c..7e3adeb 100644 --- a/.gitea/workflows/swift-macos-arm64.yml +++ b/.gitea/workflows/swift-macos-arm64.yml @@ -20,20 +20,6 @@ jobs: xcodebuild -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 run: | set -eu diff --git a/README.md b/README.md index 8bf8e99..f4b0df6 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,9 @@ A modern macOS SwiftUI/Xcode app for exercising main application window capabili - sheets and confirmation dialogs - secondary utility window - 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 - `SwiftTrayDemo/` — Swift source for the macOS app -- `project.yml` — XcodeGen spec -- `scripts/generate-xcodeproj.sh` — generates `SwiftTrayDemo.xcodeproj` +- `SwiftTrayDemo.xcodeproj/` — committed Xcode project - `.gitea/workflows/swift-macos-arm64.yml` — native Apple Silicon CI build diff --git a/project.yml b/project.yml deleted file mode 100644 index 2533f2f..0000000 --- a/project.yml +++ /dev/null @@ -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 diff --git a/scripts/generate-xcodeproj.sh b/scripts/generate-xcodeproj.sh deleted file mode 100755 index d6218b9..0000000 --- a/scripts/generate-xcodeproj.sh +++ /dev/null @@ -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