Update destination.yml

This commit is contained in:
sangeeths03
2025-05-09 21:48:10 +05:30
committed by GitHub
parent 5ba7da5b98
commit b3ce03f300
+10 -31
View File
@@ -1,45 +1,24 @@
name: Reproduce iOS Simulator Destination Error name: Reproduce iOS Simulator Issue
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
simulator_name:
description: "Simulator name (e.g., iPhone 16 Pro)"
required: true
default: "iPhone 16 Pro"
test_plan:
description: "Xcode test plan name"
required: true
default: "UnitTests"
jobs: jobs:
ios: run-tests:
runs-on: macos-14 runs-on: macos-14
steps: steps:
- name: Checkout Repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Print Inputs - name: Show available simulators
run: |
echo "Simulator name: ${{ github.event.inputs.simulator_name }}"
echo "Test Plan: ${{ github.event.inputs.test_plan }}"
- name: List Available Simulators
run: xcrun simctl list devices run: xcrun simctl list devices
- name: Create Dummy Project (to trigger simulator error) - name: Build for testing with test plan
run: |
mkdir DummyApp
cd DummyApp
swift package init --type executable
swift package generate-xcodeproj
mv DummyApp.xcodeproj Test.xcodeproj
- name: Try xcodebuild with invalid simulator
run: | run: |
xcodebuild -project Test.xcodeproj \ xcodebuild -project Test.xcodeproj \
-scheme DummyApp \ -scheme DEV \
-destination "platform=iOS Simulator,name=${{ github.event.inputs.simulator_name }},OS=latest" \ -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=latest' \
-testPlan ${{ github.event.inputs.test_plan }} \ -testPlan UnitTests \
build-for-testing build-for-testing \
-derivedDataPath build