Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/scripts/integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ cat <<EOT > ./IntegrationTester/Env.plist
</plist>
EOT

# Find iPhone 16 Pro device ID from the latest iOS version
DEVICE_ID=$(xcrun simctl list devices available | grep "iPhone 16 Pro" | tail -1 | grep -oE '[A-F0-9-]{36}')
# Try to find iPhone 17 Pro first, fall back to iPhone 16 Pro
DEVICE_ID=$(xcrun simctl list devices available | grep "iPhone 17 Pro (" | tail -1 | grep -oE '[A-F0-9-]{36}')

if [ -z "$DEVICE_ID" ]; then
echo "Error: No iPhone 16 Pro simulator found"
echo "iPhone 17 Pro not found, trying iPhone 16 Pro..."
DEVICE_ID=$(xcrun simctl list devices available | grep "iPhone 16 Pro (" | tail -1 | grep -oE '[A-F0-9-]{36}')
fi

if [ -z "$DEVICE_ID" ]; then
echo "Error: No iPhone 17 Pro or iPhone 16 Pro simulator found"
xcrun simctl list devices available
exit 1
fi
Expand All @@ -40,5 +45,5 @@ xcodebuild clean test \
-project ./IntegrationTester/IntegrationTester.xcodeproj \
-scheme IntegrationTester \
-configuration Debug \
-destination "platform=iOS Simulator,id=$DEVICE_ID" \
-destination "platform=iOS Simulator,id=$DEVICE_ID,arch=arm64" \
| xcpretty
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.5
// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -16,7 +16,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/Flight-School/AnyCodable", from: "0.6.0"),
.package(url: "https://github.com/Flight-School/AnyCodable", exact: "0.6.7"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
Loading