Wednesday, October 28, 2026
HomeiOS Developmentxcode - Github actions can't discover iOS simulator

xcode – Github actions can’t discover iOS simulator

[ad_1]

I am utilizing Github actions + fastlane to do Xcode unit check CI.

Right here is the error message i get

Loading...
109
[22:21:09]: ▸ xcodebuild: error: Unable to discover a vacation spot matching the offered vacation spot specifier:
110
[22:21:09]: ▸       { platform:iOS Simulator, id:E030085E-DB61-4619-A3EC-87495E2D4867 }
111
[22:21:09]: ▸   Accessible locations for the "CIPlaygroundTests" scheme:
112
[22:21:09]: ▸       { platform:macOS, arch:x86_64, variant:Mac Catalyst, id:4203018E-580F-C1B5-9525-B745CECA79EB }
113
[22:21:09]: ▸   Ineligible locations for the "CIPlaygroundTests" scheme:
114
[22:21:09]: ▸       { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, identify:Any iOS Machine }
115
[22:21:09]: ▸       { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, identify:Any iOS Simulator Machine }
116
[22:21:09]: ▸       { platform:macOS, variant:Mac Catalyst, identify:Any Mac }

My github motion config

identify: construct

on: [push, pull_request]

jobs:
  build_test:
    identify: Run assessments
    runs-on: macos-latest
    defaults:
      run:
        working-directory: CIPlayground
        
    steps:
      - identify: Checkout Repository
        makes use of: actions/checkout@v3
        
      - identify: Choose Xcode Model
        makes use of: maxim-lobanov/setup-xcode@v1
        with:
          xcode-version: latest-stable

    
      - identify: Set up gem dependencies
        makes use of: ruby/setup-ruby@v1
        with:
          ruby-version: .ruby-version
          bundler-cache: true
          
      - identify: Setup Fastlane
        run: |
          bundle set up
          
        
      - identify: Run assessments
        run: |
          fastlane ios assessments ci:github

and Fastlane file

default_platform(:ios)

platform :ios do
  ####### Testing #######

    desc "Runs all of the assessments"
    lane :assessments do
      unit_tests
    finish

    desc "Runs all unit assessments"
    lane :unit_tests do
      scan(
        scheme: "CIPlaygroundTests",
        gadgets: ["platform=iOS Simulator,name=iPhone 8"]
      )
    finish

finish

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments