@@ -146,7 +146,6 @@ jobs:
146146 TURBO_CACHE_DIR : .turbo/ios
147147 TURBO_TOKEN : ${{ secrets. TURBO_TOKEN }}
148148 TURBO_TEAM : ${{ secrets. TURBO_TEAM }}
149- LATEST_IOS : ${{ LATEST_IOS }}
150149 runs-on : ${{ (matrix.language == 'swift' && 'macos-15') || 'ubuntu-latest' }}
151150 permissions :
152151 # required for all workflows
@@ -245,26 +244,11 @@ jobs:
245244 run : |
246245 yarn add @iterable/react-native-sdk
247246
248- echo "Available runtimes:"
249- xcrun simctl list runtimes
250-
251- echo "Detecting latest available iOS version..."
252-
253- # First try to find iOS 18.x that's available
254- LATEST_IOS=$(xcrun simctl list runtimes | grep "iOS 18" | grep -v "watchOS" | grep -v "beta" | grep -v "Beta" | grep -v "unavailable" | tail -1 | sed 's/.*iOS \([0-9]*\.[0-9]*\).*/\1/')
255- # If no iOS 18.x available, fall back to any available iOS version
256- if [ -z "$LATEST_IOS" ]; then
257- echo "No iOS 18.x available, falling back to latest available iOS version..."
258- LATEST_IOS=$(xcrun simctl list runtimes | grep "iOS" | grep -v "watchOS" | grep -v "beta" | grep -v "Beta" | grep -v "unavailable" | tail -1 | sed 's/.*iOS \([0-9]*\.[0-9]*\).*/\1/')
259- fi
260-
261- echo "Using iOS version $LATEST_IOS"
262-
263247 xcodebuild \
264248 -project ReactNativeSdkExample.xcodeproj \
265249 -scheme example \
266250 -sdk iphonesimulator \
267- -destination "platform=iOS Simulator,OS=$LATEST_IOS, name=iPhone 16 Pro" \
251+ -destination "platform=iOS Simulator,name=iPhone 16 Pro" \
268252 -resultsBundlePath TestResults.xcresult \
269253 test | xcpretty
270254
0 commit comments