-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI to run tests on iOS 15 and Xcode 13 (#346)
* Update CI to run tests on iOS 15 and Xcode 13 * Fix script names
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
# Deleting Old Simulators | ||
|
||
SIMULATOR_NAME="Listable CI iPhone X (iOS 15.0)" | ||
|
||
xcrun simctl delete "$SIMULATOR_NAME" || true | ||
|
||
# Create New Simulators | ||
|
||
DEVICE_UUID=$(xcrun simctl create "$SIMULATOR_NAME" "iPhone X" "com.apple.CoreSimulator.SimRuntime.iOS-15-0") | ||
echo "Created iOS 15 simulator ($SIMULATOR_NAME): $DEVICE_UUID" | ||
|
||
xcrun simctl boot "$DEVICE_UUID" | ||
|
||
|
||
# Run Build | ||
|
||
xcodebuild build-for-testing -workspace "Demo/Demo.xcworkspace" -scheme "Demo" -destination "id=$DEVICE_UUID" -quiet | ||
xcodebuild test-without-building -workspace "Demo/Demo.xcworkspace" -scheme "Demo" -destination "id=$DEVICE_UUID" |