Skip to content

Commit fbeee50

Browse files
committed
ci: switch to Xcode 15
1 parent a4d85f9 commit fbeee50

6 files changed

+68
-73
lines changed

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
run: brew install xcbeautify
1313
- name: Checkout
1414
uses: actions/checkout@v3
15+
- name: "Switch to Xcode 15.2"
16+
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
1517
- name: "Baseline Unit Test Pass"
1618
run: ./scripts/run-baseline-unit-test-pass.sh
17-
- name: "Switch to Xcode 14.3.1"
18-
run: sudo xcode-select -switch /Applications/Xcode_14.3.1.app
1919
- name: "🔨 Build Dynamic XCFramework"
2020
run: ".github/workflows/scripts/build.sh"
2121
- name: "Upload xcframework artifact"
@@ -32,6 +32,8 @@ jobs:
3232
run: brew install xcbeautify
3333
- name: Checkout
3434
uses: actions/checkout@v3
35+
- name: "Switch to Xcode 15.2"
36+
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
3537
- name: Download framework artifact
3638
uses: actions/download-artifact@v3
3739
with:
@@ -48,8 +50,8 @@ jobs:
4850
run: brew install xcbeautify
4951
- name: Checkout
5052
uses: actions/checkout@v3
51-
- name: "Switch to Xcode 14.3.1"
52-
run: sudo xcode-select -switch /Applications/Xcode_14.3.1.app
53+
- name: "Switch to Xcode 15.2"
54+
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
5355
- name: "🔨 Build Static XCFramework"
5456
run: ".github/workflows/scripts/build-static.sh"
5557
- name: "Upload xcframework artifact"
@@ -70,7 +72,7 @@ jobs:
7072
uses: actions/download-artifact@v3
7173
with:
7274
name: "MUXSDKStats.xcframework.zip"
73-
- name: Select Xcode version
75+
- name: "Switch to Xcode 13.4.1"
7476
run: sudo xcode-select -s '/Applications/Xcode_13.4.1.app/Contents/Developer'
7577
- name: Run tests
7678
run: "scripts/run-tests-cocoapods-monterey.sh"

scripts/run-baseline-unit-test-pass.sh

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,42 @@ readonly SCHEME=MUXSDKStats
1212

1313
cd MUXSDKStats
1414

15-
sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
15+
echo "▸ Current Xcode: $(xcode-select -p)"
16+
17+
echo "▸ Available Xcode SDKs"
18+
19+
xcodebuild -showsdks
20+
21+
echo "▸ Testing SDK on iOS 17.2 - iPhone 14 Pro Max"
22+
23+
xcodebuild clean test \
24+
-project $PROJECT \
25+
-scheme $SCHEME \
26+
-destination 'platform=iOS Simulator,OS=17.2,name=iPhone 14 Pro Max' \
27+
| xcbeautify
28+
29+
echo "▸ Testing SDK on iOS 17.2 - iPad Pro (12.9-inch) (6th generation)"
30+
31+
xcodebuild clean test \
32+
-project $PROJECT \
33+
-scheme $SCHEME \
34+
-destination 'platform=iOS Simulator,OS=17.2,name=iPad Pro (12.9-inch) (6th generation)' \
35+
| xcbeautify
36+
37+
sudo xcode-select -s /Applications/Xcode_14.3.1.app/
1638

1739
echo "▸ Current Xcode: $(xcode-select -p)"
1840

1941
echo "▸ Available Xcode SDKs"
2042

2143
xcodebuild -showsdks
2244

23-
echo "▸ Testing SDK on iOS 16.4 - iPhone 14 Pro Max"
45+
echo "▸ Testing SDK on iOS 16.4 - iPhone 14"
2446

2547
xcodebuild clean test \
2648
-project $PROJECT \
2749
-scheme $SCHEME \
28-
-destination 'platform=iOS Simulator,OS=16.4,name=iPhone 14 Pro Max' \
50+
-destination 'platform=iOS Simulator,OS=16.4,name=iPhone 14' \
2951
| xcbeautify
3052

3153
echo "▸ Testing SDK on iOS 16.4 - iPad Pro (12.9-inch) (6th generation)"
@@ -60,7 +82,6 @@ xcodebuild clean test \
6082
-destination 'platform=iOS Simulator,OS=16.2,name=iPad Pro (11-inch) (4th generation)' \
6183
| xcbeautify
6284

63-
6485
sudo xcode-select -s /Applications/Xcode_14.1.app/
6586

6687
echo "▸ Current Xcode: $(xcode-select -p)"

scripts/run-complete-unit-test-pass-ventura.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,54 +13,56 @@ readonly SCHEME_TVOS=MUXSDKStatsTv
1313

1414
cd MUXSDKStats
1515

16-
sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
16+
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
1717

1818
echo "▸ Current Xcode: $(xcode-select -p)"
1919

2020
echo "▸ Available Xcode SDKs"
2121

2222
xcodebuild -showsdks
2323

24-
echo "▸ Testing SDK on iOS 16.4 - iPhone 14 Pro Max"
24+
echo "▸ Testing SDK on iOS 17.2 - iPhone 14 Pro Max"
2525

2626
xcodebuild clean test \
2727
-project $PROJECT \
2828
-scheme $SCHEME \
29-
-destination 'platform=iOS Simulator,OS=16.4,name=iPhone 14 Pro Max' \
29+
-destination 'platform=iOS Simulator,OS=17.2,name=iPhone 14 Pro Max' \
3030
| xcbeautify
3131

32-
echo "▸ Testing SDK on iOS 16.4 - iPad Pro (12.9-inch) (6th generation)"
32+
echo "▸ Testing SDK on iOS 17.2 - iPad Pro (12.9-inch) (6th generation)"
3333

3434
xcodebuild clean test \
3535
-project $PROJECT \
3636
-scheme $SCHEME \
37-
-destination 'platform=iOS Simulator,OS=16.4,name=iPad Pro (12.9-inch) (6th generation)' \
37+
-destination 'platform=iOS Simulator,OS=17.2,name=iPad Pro (12.9-inch) (6th generation)' \
3838
| xcbeautify
3939

40-
echo "▸ Testing SDK on tvOS 16.4 - Apple TV"
40+
echo "▸ Testing SDK on tvOS 17.2 - Apple TV"
4141

4242
xcodebuild clean test \
4343
-project $PROJECT \
4444
-scheme $SCHEME_TVOS \
45-
-destination 'platform=tvOS Simulator,OS=16.4,name=Apple TV' \
45+
-destination 'platform=tvOS Simulator,OS=17.2,name=Apple TV' \
4646
-verbose \
4747
| xcbeautify
4848

49-
echo "▸ Testing SDK on tvOS 16.4 - Apple TV 4K (3rd generation)"
49+
echo "▸ Testing SDK on tvOS 17.2 - Apple TV 4K (3rd generation)"
5050

5151
xcodebuild clean test \
5252
-project $PROJECT \
5353
-scheme $SCHEME_TVOS \
54-
-destination 'platform=tvOS Simulator,OS=16.4,name=Apple TV 4K (3rd generation)' \
54+
-destination 'platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)' \
5555
-verbose \
5656
| xcbeautify
5757

58-
echo "▸ Testing SDK on tvOS 16.4 - Apple TV 4K (3rd generation) (at 1080p)"
58+
echo "▸ Testing SDK on tvOS 17.2 - Apple TV 4K (3rd generation) (at 1080p)"
59+
60+
sudo xcode-select -s /Applications/Xcode_14.3.1.app/Contents/Developer
5961

6062
xcodebuild clean test \
6163
-project $PROJECT \
6264
-scheme $SCHEME_TVOS \
63-
-destination 'platform=tvOS Simulator,OS=16.4,name=Apple TV 4K (3rd generation) (at 1080p)' \
65+
-destination 'platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation) (at 1080p)' \
6466
| xcbeautify
6567

6668
sudo xcode-select -s /Applications/Xcode_14.2.app/

scripts/run-tests-cocoapods-ventura.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@ pod deintegrate && pod install --clean-install --repo-update
4444
echo "▸ Available Schemes in $(pwd)"
4545
xcodebuild -list
4646

47-
echo "▸ Running Demo App Tests"
47+
echo "▸ Available Simulators"
48+
xcrun simctl list
49+
50+
echo "▸ Testing SDK on iOS 17.2 - iPhone 14 Pro Max"
4851
xcodebuild clean test \
4952
-workspace $WORKSPACE \
5053
-scheme $SCHEME \
51-
-destination 'platform=iOS Simulator,OS=16.4,name=iPhone 14 Pro Max' | xcbeautify
54+
-destination 'platform=iOS Simulator,OS=17.2,name=iPhone 14 Pro Max' | xcbeautify

scripts/run-tests-spm-ventura.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

scripts/run-tests-swift-package-manager-ventura.sh

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,26 @@ unzip MUXSDKStats.xcframework.zip
3333
cd apps/MUXSDKStatsExampleSPM
3434

3535
echo "▸ Resolving package dependencies"
36-
xcodebuild -resolvePackageDependencies
36+
xcodebuild -resolvePackageDependencies \
37+
-project MUXSDKStatsExampleSPM.xcodeproj | xcbeautify
3738

3839
echo "▸ Available Schemes in $(pwd)"
3940
xcodebuild -list -json
4041

41-
echo "▸ Running ${SCHEME} Tests"
42+
echo "▸ Running ${SCHEME} Test when installed using Swift Package Manager"
43+
echo ""
44+
45+
echo "▸ Testing SDK on iOS 17.2 - iPhone 14 Pro Max"
46+
47+
xcodebuild clean test \
48+
-project MUXSDKStatsExampleSPM.xcodeproj \
49+
-scheme "MUXSDKStatsExampleSPM" \
50+
-destination 'platform=iOS Simulator,OS=17.2,name=iPhone 14 Pro Max' | xcbeautify
51+
52+
echo "▸ Testing Mac Catalyst - Designed for iPad variant"
53+
4254
xcodebuild clean test \
43-
-project $PROJECT \
44-
-scheme $SCHEME \
45-
-destination 'platform=iOS Simulator,OS=16.4,name=iPhone 14 Pro Max' | xcbeautify
55+
-project MUXSDKStatsExampleSPM.xcodeproj \
56+
-scheme "MUXSDKStatsExampleSPM" \
57+
-destination 'generic/platform=macOS,arch=arm64,variant=Designed for iPad' | xcbeautify
58+

0 commit comments

Comments
 (0)