Skip to content

Commit 909f957

Browse files
committed
Fix
1 parent e2e8183 commit 909f957

File tree

1 file changed

+17
-3
lines changed
  • tests/business-critical-integration/scripts

1 file changed

+17
-3
lines changed

tests/business-critical-integration/scripts/build.sh

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,19 @@ fi
6363

6464
echo "🔍 Using iOS Simulator SDK: $IOS_SDK"
6565

66+
# Debug: Show all available SDKs and simulators
67+
echo ""
68+
echo "🔍 DEBUG: Available SDKs:"
69+
xcodebuild -showsdks
70+
71+
echo ""
72+
echo "🔍 DEBUG: Available simulators:"
73+
xcrun simctl list devices --json | jq -r '.devices | to_entries[] | select(.key | contains("iOS")) | "\(.key): \(.value[] | select(.isAvailable == true) | "\(.name) (\(.udid))")"' 2>/dev/null || xcrun simctl list devices
74+
75+
echo ""
76+
echo "🔍 DEBUG: Available destinations:"
77+
xcodebuild -project IterableSDK-Integration-Tester.xcodeproj -scheme "IterableSDK-Integration-Tester" -showdestinations 2>/dev/null | head -20
78+
6679

6780
# Get simulator UUID from config file
6881
CONFIG_FILE="$PROJECT_DIR/integration-test-app/config/test-config.json"
@@ -76,11 +89,12 @@ if [[ -f "$CONFIG_FILE" ]]; then
7689
echo "🔍 Simulator UUID from config: '$SIMULATOR_UUID'"
7790

7891
if [[ -n "$SIMULATOR_UUID" && "$SIMULATOR_UUID" != "null" ]]; then
79-
SIMULATOR_DESTINATION="id=$SIMULATOR_UUID"
80-
echo "🎯 Using simulator from config: $SIMULATOR_UUID"
92+
# Try generic simulator destination instead of specific ID
93+
SIMULATOR_DESTINATION="generic/platform=iOS Simulator"
94+
echo "🎯 Using generic iOS Simulator destination (UUID found: $SIMULATOR_UUID)"
8195
else
8296
echo "⚠️ No valid simulator UUID found in config, using generic destination"
83-
SIMULATOR_DESTINATION="platform=iOS Simulator,name=iPhone 16 Pro,OS=$IOS_SDK"
97+
SIMULATOR_DESTINATION="generic/platform=iOS Simulator"
8498
echo "🎯 Using generic simulator destination: $SIMULATOR_DESTINATION"
8599
fi
86100
else

0 commit comments

Comments
 (0)