diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index fe5e819..3364fb9 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -8,11 +8,11 @@ SCHEME="TaskTrigger" DESTINATION=$1 if [ -z "$DESTINATION" ]; then - echo "Missing argument: destination" - echo "Usage: $0 " - echo "destination: [iOS|macOS|watchOS|tvOS]" - exit 1 + echo "Missing argument: destination" + echo "Usage: $0 " + echo "destination: [iOS|macOS|watchOS|tvOS|visionOS]" + exit 1 fi set -o pipefail && xcodebuild clean build -scheme $SCHEME \ - -destination "generic/platform=$DESTINATION" | xcpretty + -destination "generic/platform=$DESTINATION" | xcpretty diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 962b923..88663d4 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -4,9 +4,12 @@ on: workflow_dispatch: workflow_call: +env: + DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer + jobs: build-documentation: - runs-on: macos-14 + runs-on: macos-15 steps: - name: Checkout Repository uses: actions/checkout@v4 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3171af..227eb65 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,12 @@ on: workflow_dispatch: workflow_call: +env: + DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer + jobs: build: - runs-on: macos-14 + runs-on: macos-15 steps: - name: Checkout Repository uses: actions/checkout@v4 @@ -17,3 +20,5 @@ jobs: run: exec ./.github/scripts/build.sh tvOS - name: Build watchOS run: exec ./.github/scripts/build.sh watchOS + - name: Build visionOS + run: exec ./.github/scripts/build.sh visionOS diff --git a/Package.swift b/Package.swift index 66168f7..f1cfb7a 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.8 +// swift-tools-version: 6.0 import PackageDescription @@ -12,6 +12,7 @@ let package = Package( .watchOS(.v8), .tvOS(.v15), .macCatalyst(.v15), + .visionOS(.v1), ], products: [ .library( diff --git a/TaskTriggerDemo/TaskTriggerDemo.xcodeproj/project.pbxproj b/TaskTriggerDemo/TaskTriggerDemo.xcodeproj/project.pbxproj index 0df3119..7496046 100644 --- a/TaskTriggerDemo/TaskTriggerDemo.xcodeproj/project.pbxproj +++ b/TaskTriggerDemo/TaskTriggerDemo.xcodeproj/project.pbxproj @@ -304,7 +304,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.lukaspistrol.TaskTriggerDemo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 6.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -332,7 +332,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.lukaspistrol.TaskTriggerDemo; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; + SWIFT_VERSION = 6.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release;