Skip to content

Commit

Permalink
Explicit build targets based on available
Browse files Browse the repository at this point in the history
  • Loading branch information
stalgiag committed Jan 6, 2025
1 parent e217b2f commit 47d8130
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ios-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ jobs:
fi
cd ..
yarn generate-test-data
xcodebuild -workspace pinpadclientmaplibre.xcworkspace -scheme pinpadclientmaplibre -configuration Debug -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' build
cd ios
SDK_VERSION=$(xcodebuild -showsdks | grep 'Simulator - iOS' | grep -o 'iphonesimulator[0-9.]*' | head -1)
OS_VERSION=$(echo $SDK_VERSION | grep -o '[0-9.]*')
xcodebuild -workspace pinpadclientmaplibre.xcworkspace \
-scheme pinpadclientmaplibre \
-configuration Debug \
-sdk $SDK_VERSION \
-destination "platform=iOS Simulator,OS=$OS_VERSION,name=iPhone 15" \
build

0 comments on commit 47d8130

Please sign in to comment.