Skip to content

Commit 67515aa

Browse files
committed
Fix script
1 parent da8f629 commit 67515aa

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/ios-tests.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
echo "Current directory contents:"
6161
ls -la
62-
echo "Available schemes:"
62+
echo "Available schemes and destinations:"
6363
if [ -d "Cloudinary.xcworkspace" ]; then
6464
xcodebuild -workspace Cloudinary.xcworkspace -list
6565
else
@@ -71,25 +71,32 @@ jobs:
7171
working-directory: Example
7272
run: pod install
7373

74-
- name: Check Cloudinary_Tests scheme destinations
74+
- name: Check all scheme destinations
7575
working-directory: Example
7676
run: |
77-
echo "Checking destinations for Cloudinary_Tests scheme:"
78-
xcodebuild -workspace Cloudinary.xcworkspace -scheme Cloudinary_Tests -showdestinations
77+
echo "Getting list of all schemes first..."
78+
SCHEMES=$(xcodebuild -workspace Cloudinary.xcworkspace -list | grep -A 100 "Schemes:" | grep "^ " | sed 's/^ //')
79+
echo "Found schemes: $SCHEMES"
80+
81+
for scheme in $SCHEMES; do
82+
echo "=== Checking destinations for scheme: $scheme ==="
83+
xcodebuild -workspace Cloudinary.xcworkspace -scheme "$scheme" -showdestinations 2>/dev/null || echo "Could not get destinations for $scheme"
84+
echo ""
85+
done
7986
8087
- name: Build for Testing
8188
run: |
8289
xcodebuild build-for-testing \
8390
-workspace Example/Cloudinary.xcworkspace \
84-
-scheme Cloudinary_Tests \
91+
-scheme Cloudinary \
8592
-destination "platform=iOS Simulator,name=${{ matrix.ios_name }}" \
8693
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
8794
8895
- name: Run Tests
8996
run: |
9097
xcodebuild test-without-building \
9198
-workspace Example/Cloudinary.xcworkspace \
92-
-scheme Cloudinary_Tests \
99+
-scheme Cloudinary \
93100
-destination "platform=iOS Simulator,name=${{ matrix.ios_name }}" \
94101
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty
95102

0 commit comments

Comments
 (0)