Skip to content

Commit

Permalink
Updated the default min deployment versions of iOS (13.0), watchOS(6.…
Browse files Browse the repository at this point in the history
…0), tvOS (13.0), macOS (11.0), visionOS (1.0). Updated all github actions to support newer versions of Xcode.

Allow visionOS to fail for now since the stable support will be added during H1 2024
  • Loading branch information
Alexander Widerberg committed Nov 16, 2023
1 parent d495c04 commit dec6ed8
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 65 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/catalyst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
- name: Build
run: ./.github/build.sh
build_with_13_4_MAC_CATALYST_ARM64:
name: "Xcode version 13.4, Target macOS Catalyst on Apple Silicon [arm64] Target SDK 13.1"
runs-on: macos-12
name: "Xcode version 15.0, Target macOS Catalyst on Apple Silicon [arm64] Target SDK 13.1"
runs-on: macos-13
env:
PLATFORM: MAC_CATALYST_ARM64
DEPLOYMENT_TARGET: "13.1"
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.4'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
40 changes: 20 additions & 20 deletions .github/workflows/combined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,63 @@ on:
types: [ opened, synchronize ]

jobs:
build_with_12_5_1_OS64COMBINED:
name: "Xcode version 13.1, Target iOS Combined [x86_64, arm64] Target SDK 12.0"
runs-on: macos-11
build_with_15_0_OS64COMBINED:
name: "Xcode version 15.0, Target iOS Combined [x86_64, arm64] Target SDK 15.0"
runs-on: macos-13
env:
PLATFORM: OS64COMBINED
USE_NEW_BUILD: 1
DEPLOYMENT_TARGET: "12.0"
DEPLOYMENT_TARGET: "15.0"
USE_XCODE: 1
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.1'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_12_5_1_WATCHOSCOMBINED:
name: "Xcode version 13.1, Target watchOS Combined [armv7k, arm64_32, x86_64] Target SDK 5.0"
runs-on: macos-11
build_with_15_0_WATCHOSCOMBINED:
name: "Xcode version 15.0, Target watchOS Combined [armv7k, arm64_32, x86_64] Target SDK 7.0"
runs-on: macos-13
env:
PLATFORM: WATCHOSCOMBINED
USE_NEW_BUILD: 1
DEPLOYMENT_TARGET: "5.0"
DEPLOYMENT_TARGET: "7.0"
USE_XCODE: 1
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.1'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_12_5_1_TVOSCOMBINED:
name: "Xcode version 13.1, Target tvOS Combined [arm64, x86_64] Target SDK 11.0"
runs-on: macos-11
build_with_15_0_TVOSCOMBINED:
name: "Xcode version 15.0, Target tvOS Combined [arm64, x86_64] Target SDK 14.0"
runs-on: macos-13
env:
PLATFORM: TVOSCOMBINED
USE_NEW_BUILD: 1
DEPLOYMENT_TARGET: "11.0"
DEPLOYMENT_TARGET: "14.0"
USE_XCODE: 1
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.1'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_13_1_OS64_LIBCURL:
name: "Xcode version 13.1, Target iOS [arm64, x86_64] Target SDK 14.0 [libCURL example]"
runs-on: macos-11
build_with_15_0_OS64_LIBCURL:
name: "Xcode version 15.0, Target iOS [arm64, x86_64] Target SDK 17.0 [libCURL example]"
runs-on: macos-13
env:
PLATFORM: OS64COMBINED
DEPLOYMENT_TARGET: "14.0"
DEPLOYMENT_TARGET: "17.0"
USE_XCODE: 1
BUILD_CURL: 1
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.1'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
30 changes: 15 additions & 15 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,43 @@ on:
types: [ opened, synchronize ]

jobs:
build_with_11_7_0_OS:
name: "Xcode version 11.7.0, Target iOS [arm64] Target SDK 9.0"
runs-on: macos-11
build_with_15_0_OS:
name: "Xcode version 11.7.0, Target iOS [arm64] Target SDK 14.0"
runs-on: macos-13
env:
PLATFORM: OS64
DEPLOYMENT_TARGET: 9.0
DEPLOYMENT_TARGET: 14.0
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '11.7.0'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_11_7_0_SIMULATOR64:
name: "Xcode version 11.7.0, Target iOS Simulator [x86_64] Target SDK 11.0"
runs-on: macos-11
build_with_15_0_SIMULATOR64:
name: "Xcode version 15.0, Target iOS Simulator [x86_64] Target SDK 14.0"
runs-on: macos-13
env:
PLATFORM: SIMULATOR64
DEPLOYMENT_TARGET: 11.0
DEPLOYMENT_TARGET: 14.0
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '11.7.0'
xcode-version: '14.0'
- name: Build
run: ./.github/build.sh
build_with_11_7_0_SIMULATORARM64:
name: "Xcode version 12.5.1, Target iOS Simulator [arm64] Target SDK 11.0"
runs-on: macos-11
build_with_15_0_SIMULATORARM64:
name: "Xcode version 15.0, Target iOS Simulator [arm64] Target SDK 16.0"
runs-on: macos-13
env:
PLATFORM: SIMULATORARM64
DEPLOYMENT_TARGET: 11.0
DEPLOYMENT_TARGET: 16.0
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '12.5.1'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_11_7_0_OS64:
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,27 @@ on:
types: [ opened, synchronize ]

jobs:
build_with_12_5_1_MAC:
name: "Xcode version 12.5.1, Target macOS [x86_64] Target SDK 10.13"
runs-on: macos-11
build_with_15_0_MAC:
name: "Xcode version 15.0, Target macOS [x86_64] Target SDK 10.13"
runs-on: macos-13
env:
PLATFORM: MAC
DEPLOYMENT_TARGET: "10.13"
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '12.5.1'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_13_2_MAC:
name: "Xcode version 13.2, Target macOS [arm64] Target SDK 11.0 [shared example]"
runs-on: macos-12
build_with_latest_MAC:
name: "Xcode version [latest supported], Target macOS [arm64] Target SDK 11.0 [shared example]"
runs-on: macos-latest
env:
PLATFORM: MAC_ARM64
DEPLOYMENT_TARGET: "11.0"
BUILD_SHARED: 1
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.2'
- name: Build
run: ./.github/build.sh
10 changes: 5 additions & 5 deletions .github/workflows/tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:
types: [ opened, synchronize ]

jobs:
build_with_11_7_0_TVOS:
name: "Xcode version 11.7.0, Target tvOS [arm64] Target SDK 11.0"
runs-on: macos-11
build_with_15_0_TVOS:
name: "Xcode version 15.0, Target tvOS [arm64] Target SDK 14.0"
runs-on: macos-13
env:
PLATFORM: TVOS
DEPLOYMENT_TARGET: "11.0"
DEPLOYMENT_TARGET: "14.0"
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '11.7.0'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
9 changes: 6 additions & 3 deletions .github/workflows/visionos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build_with_15_OS:
name: "Xcode version 15.0.0, Target visionOS [arm64] Target SDK 1.0"
runs-on: macos-latest
runs-on: macos-13
env:
PLATFORM: VISIONOS
DEPLOYMENT_TARGET: 1.0
Expand All @@ -19,10 +19,11 @@ jobs:
with:
xcode-version: '15.0'
- name: Build
continue-on-error: true
run: ./.github/build.sh
build_with_15_SIMULATOR64:
name: "Xcode version 15.0.0, Target visionOS Simulator [x86_64] Target SDK 1.0"
runs-on: macos-latest
runs-on: macos-13
env:
PLATFORM: SIMULATOR64_VISIONOS
DEPLOYMENT_TARGET: 1.0
Expand All @@ -32,10 +33,11 @@ jobs:
with:
xcode-version: '15.0'
- name: Build
continue-on-error: true
run: ./.github/build.sh
build_with_15_SIMULATOR_VISIONOS:
name: "Xcode version 15.0.0, Target visionOS Simulator [arm64] Target SDK 1.0"
runs-on: macos-latest
runs-on: macos-13
env:
PLATFORM: SIMULATOR_VISIONOS
DEPLOYMENT_TARGET: 1.0
Expand All @@ -45,5 +47,6 @@ jobs:
with:
xcode-version: '15.0'
- name: Build
continue-on-error: true
run: ./.github/build.sh

10 changes: 5 additions & 5 deletions .github/workflows/watchos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
types: [ opened, synchronize ]

jobs:
build_with_11_7_0_WATCHOS:
name: "Xcode version 11.7.0, Target tvOS [armv7k, arm64_32] Target SDK 5.0"
runs-on: macos-11
build_with_15_0_WATCHOS:
name: "Xcode version 15.0, Target tvOS [armv7k, arm64_32] Target SDK 7.0"
runs-on: macos-13
env:
PLATFORM: WATCHOS
DEPLOYMENT_TARGET: "5.0"
DEPLOYMENT_TARGET: "7.0"
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '11.7.0'
xcode-version: '15.0'
- name: Build
run: ./.github/build.sh
build_with_12_5_1_SIMULATOR_WATCHOS:
Expand Down
8 changes: 4 additions & 4 deletions ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
# CMAKE_OSX_SYSROOT, but can also be manually specified (although this should
# not be required).
#
# DEPLOYMENT_TARGET: Minimum SDK version to target. Default 2.0 on watchOS and 9.0 on tvOS+iOS
# DEPLOYMENT_TARGET: Minimum SDK version to target. Default 6.0 on watchOS, 13.0 on tvOS+iOS/iPadOS, 11.0 on macOS, 1.0 on visionOS
#
# NAMED_LANGUAGE_SUPPORT:
# ON (default) = Will require "enable_language(OBJC) and/or enable_language(OBJCXX)" for full OBJC|OBJCXX support
Expand Down Expand Up @@ -259,10 +259,10 @@ set(NAMED_LANGUAGE_SUPPORT_INT ${NAMED_LANGUAGE_SUPPORT} CACHE BOOL
if(NOT DEFINED DEPLOYMENT_TARGET)
if (PLATFORM MATCHES "WATCHOS")
# Unless specified, SDK version 4.0 is used by default as minimum target version (watchOS).
set(DEPLOYMENT_TARGET "4.0")
set(DEPLOYMENT_TARGET "6.0")
elseif(PLATFORM STREQUAL "MAC")
# Unless specified, SDK version 10.13 (High Sierra) is used by default as the minimum target version (macos).
set(DEPLOYMENT_TARGET "10.13")
set(DEPLOYMENT_TARGET "11.0")
elseif(PLATFORM STREQUAL "VISIONOS" OR PLATFORM STREQUAL "SIMULATOR_VISIONOS" OR PLATFORM STREQUAL "SIMULATOR64_VISIONOS")
# Unless specified, SDK version 1.0 is used by default as minimum target version (visionOS).
set(DEPLOYMENT_TARGET "1.0")
Expand All @@ -277,7 +277,7 @@ if(NOT DEFINED DEPLOYMENT_TARGET)
set(DEPLOYMENT_TARGET "13.1")
else()
# Unless specified, SDK version 11.0 is used by default as the minimum target version (iOS, tvOS).
set(DEPLOYMENT_TARGET "11.0")
set(DEPLOYMENT_TARGET "13.0")
endif()
message(STATUS "[DEFAULTS] Using the default min-version since DEPLOYMENT_TARGET not provided!")
elseif(DEFINED DEPLOYMENT_TARGET AND PLATFORM MATCHES "^MAC_CATALYST" AND ${DEPLOYMENT_TARGET} VERSION_LESS "13.1")
Expand Down

0 comments on commit dec6ed8

Please sign in to comment.