fastlane: Scan cannot find simulators in Xcode 16.0

New Issue Checklist

Issue Description

I’ve created a new Xcode project and added the following code to my Fastfile:

default_platform(:ios)

platform :ios do
  lane :test do
    scan(
      project: "FastlaneTest.xcodeproj",
      devices: ["iPhone 16 Pro"]
    )
  end
end

When I run the test lane against Xcode 16.0, I get the following error output:

[14:32:30]: Ignoring 'iPhone 16 Pro', couldn't find matching simulator
[14:32:30]: Couldn't find any matching simulators for '["iPhone 16 Pro"]' - falling back to default simulator

I’ve tracked this issue down to a version mismatch between the SDK version and the simulator version in Xcode 16.0:

Screenshot 2024-09-19 at 14 34 03

The default_os_version method retrieves the SDK version and passes it to DeviceManager.runtime_build_os_versions. This method attempts to match the SDK version (22A3362) with the simulator version (22A3351), but fails because the versions do not match.

https://github.com/fastlane/fastlane/blob/2de8c8446bfa33d886536f2c1453955e597bbd7d/scan/lib/scan/detect_values.rb#L112

https://github.com/fastlane/fastlane/blob/2de8c8446bfa33d886536f2c1453955e597bbd7d/fastlane_core/lib/fastlane_core/device_manager.rb#L14

Complete output when running fastlane, including the stack trace and command used
 [14:41:48]: ------------------------------
[14:41:48]: --- Step: default_platform ---
[14:41:48]: ------------------------------
[14:41:48]: Driving the lane 'ios test' 🚀
[14:41:48]: ------------------
[14:41:48]: --- Step: scan ---
[14:41:48]: ------------------
[14:41:48]: Resolving Swift Package Manager dependencies...
[14:41:48]: $ xcodebuild -resolvePackageDependencies -scheme FastlaneTest -project FastlaneTest.xcodeproj
[14:41:50]: ▸ Command line invocation:
[14:41:50]: ▸     /Applications/Xcode-16.0.0.app/Contents/Developer/usr/bin/xcodebuild -resolvePackageDependencies -scheme FastlaneTest -project FastlaneTest.xcodeproj
[14:41:50]: ▸ User defaults from command line:
[14:41:50]: ▸     IDEPackageSupportUseBuiltinSCM = YES
[14:41:50]: ▸ resolved source packages: 
[14:41:50]: $ xcodebuild -showBuildSettings -scheme FastlaneTest -project FastlaneTest.xcodeproj 2>&1
nil versions are discouraged and will be deprecated in Rubygems 4
[14:41:52]: Ignoring 'iPhone 16 Pro', couldn't find matching simulator
[14:41:52]: Couldn't find any matching simulators for '["iPhone 16 Pro"]' - falling back to default simulator
[14:41:52]: Found simulator "iPhone 13 Pro (15.5)"

±-----------------------------------------------------------------------------------------------------------------------------------------+ | Summary for scan 2.222.0 | ±-----------------------------------------------±----------------------------------------------------------------------------------------+ | project | FastlaneTest.xcodeproj | | devices | [“iPhone 16 Pro”] | | scheme | FastlaneTest | | skip_detect_devices | false | | ensure_devices_found | false | | force_quit_simulator | false | | reset_simulator | false | | disable_slide_to_type | true | | reinstall_app | false | | clean | false | | open_report | false | | output_directory | ./fastlane/test_output | | output_types | html,junit | | buildlog_path | ~/Library/Logs/scan | | include_simulator_logs | false | | xcodebuild_formatter | xcbeautify | | output_remove_retry_attempts | false | | derived_data_path | /Users/felix/Library/Developer/Xcode/DerivedData/FastlaneTest-bwxhtcnapwlereboqpwttbqm | | | ursk | | should_zip_build_products | false | | output_xctestrun | false | | result_bundle | false | | use_clang_report_name | false | | disable_concurrent_testing | false | | skip_build | false | | slack_use_webhook_configured_username_and_icon | false | | slack_username | fastlane | | slack_icon_url | https://fastlane.tools/assets/img/fastlane_icon.png | | skip_slack | false | | slack_only_on_failure | false | | run_rosetta_simulator | false | | xcodebuild_command | env NSUnbufferedIO=YES xcodebuild | | skip_package_dependencies_resolution | false | | disable_package_automatic_updates | false | | use_system_scm | false | | number_of_retries | 0 | | fail_build | true | | xcode_path | /Applications/Xcode-16.0.0.app | ±-----------------------------------------------±----------------------------------------------------------------------------------------+

[14:41:52]: Disabling ‘Slide to Type’ iPhone 13 Pro [14:41:52]: $ /usr/libexec/PlistBuddy -c “Add :KeyboardContinuousPathEnabled bool false” /Users/felix/Library/Developer/CoreSimulator/Devices/1AAD87BC-67DD-4E68-B81E-823410576F3B/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist >/dev/null 2>&1 [14:41:52]: $ set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme FastlaneTest -project FastlaneTest.xcodeproj -derivedDataPath /Users/felix/Library/Developer/Xcode/DerivedData/FastlaneTest-bwxhtcnapwlereboqpwttbqmursk -destination ‘platform=iOS Simulator,id=1AAD87BC-67DD-4E68-B81E-823410576F3B’ build test | tee ‘/Users/felix/Library/Logs/scan/FastlaneTest-FastlaneTest.log’ | xcbeautify [14:41:52]: ▸ Loading… [14:41:52]: ▸ ----- xcbeautify ----- [14:41:52]: ▸ Version: 2.11.0 [14:41:52]: ▸ ---------------------- [14:41:53]: ▸ 2024-09-19 14:41:53.519 xcodebuild[14556:3364128] Writing error result bundle to /var/folders/ms/lrk4_z852q595bcwwfh0ftcm0000gn/T/ResultBundle_2024-19-09_14-41-0053.xcresult [14:41:54]: ▸ xcodebuild: error: Unable to find a destination matching the provided destination specifier: [14:41:54]: ▸ { platform:iOS Simulator, id:1AAD87BC-67DD-4E68-B81E-823410576F3B } [14:41:54]: ▸ Available destinations for the “FastlaneTest” scheme: [14:41:54]: ▸ { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006000-001205E42238801E, name:My Mac } [14:41:54]: ▸ { platform:iOS, arch:arm64, id:00008110-000E182C1E43801E, name:iPad mini } [14:41:54]: ▸ { platform:iOS, arch:arm64, id:00008101-000674C80E98001E, name:iPhone mini } [14:41:54]: ▸ { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } [14:41:54]: ▸ { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device } [14:41:54]: ▸ { platform:iOS Simulator, id:9EBE88EB-B43C-439F-BDF6-C79C43DE51E0, OS:18.0, name:iPad (10th generation) } [14:41:54]: ▸ { platform:iOS Simulator, id:9EBE88EB-B43C-439F-BDF6-C79C43DE51E0, OS:18.0, name:iPad (10th generation) } [14:41:54]: ▸ { platform:iOS Simulator, id:5116FFA8-B50F-45EE-A62B-02467FE8C256, OS:18.0, name:iPad Air 11-inch (M2) } [14:41:54]: ▸ { platform:iOS Simulator, id:5116FFA8-B50F-45EE-A62B-02467FE8C256, OS:18.0, name:iPad Air 11-inch (M2) } [14:41:54]: ▸ { platform:iOS Simulator, id:BCCD7C77-BF2F-4E2D-89BB-CC32BBF9415C, OS:18.0, name:iPad Air 13-inch (M2) } [14:41:54]: ▸ { platform:iOS Simulator, id:BCCD7C77-BF2F-4E2D-89BB-CC32BBF9415C, OS:18.0, name:iPad Air 13-inch (M2) } [14:41:54]: ▸ { platform:iOS Simulator, id:060F47A1-B9D3-4A2F-A0F3-C23975130444, OS:18.0, name:iPad Pro 11-inch (M4) } [14:41:54]: ▸ { platform:iOS Simulator, id:060F47A1-B9D3-4A2F-A0F3-C23975130444, OS:18.0, name:iPad Pro 11-inch (M4) } [14:41:54]: ▸ { platform:iOS Simulator, id:D03E4F0B-3741-40E0-9420-5194A78874BB, OS:18.0, name:iPad Pro 13-inch (M4) } [14:41:54]: ▸ { platform:iOS Simulator, id:D03E4F0B-3741-40E0-9420-5194A78874BB, OS:18.0, name:iPad Pro 13-inch (M4) } [14:41:54]: ▸ { platform:iOS Simulator, id:7F9C7DEE-5EF9-4A03-AC5D-0453F4AC5D09, OS:18.0, name:iPad mini (6th generation) } [14:41:54]: ▸ { platform:iOS Simulator, id:7F9C7DEE-5EF9-4A03-AC5D-0453F4AC5D09, OS:18.0, name:iPad mini (6th generation) } [14:41:54]: ▸ { platform:iOS Simulator, id:DBA85C08-D27A-4DAA-96E2-D1A148D6C632, OS:18.0, name:iPhone 15 } [14:41:54]: ▸ { platform:iOS Simulator, id:DBA85C08-D27A-4DAA-96E2-D1A148D6C632, OS:18.0, name:iPhone 15 } [14:41:54]: ▸ { platform:iOS Simulator, id:1AD7239D-81E5-4B3D-9F07-71C1F37931BC, OS:18.0, name:iPhone 15 Plus } [14:41:54]: ▸ { platform:iOS Simulator, id:1AD7239D-81E5-4B3D-9F07-71C1F37931BC, OS:18.0, name:iPhone 15 Plus } [14:41:54]: ▸ { platform:iOS Simulator, id:E931629D-1562-4940-85BA-07C2728B9785, OS:18.0, name:iPhone 15 Pro } [14:41:54]: ▸ { platform:iOS Simulator, id:E931629D-1562-4940-85BA-07C2728B9785, OS:18.0, name:iPhone 15 Pro } [14:41:54]: ▸ { platform:iOS Simulator, id:E3ABF2B9-D949-4A4F-9FD6-C3A7A640E615, OS:18.0, name:iPhone 15 Pro Max } [14:41:54]: ▸ { platform:iOS Simulator, id:E3ABF2B9-D949-4A4F-9FD6-C3A7A640E615, OS:18.0, name:iPhone 15 Pro Max } [14:41:54]: ▸ { platform:iOS Simulator, id:32A021CE-E291-4C21-8A5C-B5C9644282B4, OS:18.0, name:iPhone 16 } [14:41:54]: ▸ { platform:iOS Simulator, id:32A021CE-E291-4C21-8A5C-B5C9644282B4, OS:18.0, name:iPhone 16 } [14:41:54]: ▸ { platform:iOS Simulator, id:F9557166-EEE6-4E64-8B48-842899847CDD, OS:18.0, name:iPhone 16 Plus } [14:41:54]: ▸ { platform:iOS Simulator, id:F9557166-EEE6-4E64-8B48-842899847CDD, OS:18.0, name:iPhone 16 Plus } [14:41:54]: ▸ { platform:iOS Simulator, id:9B502AE5-5C59-44F6-9B40-5EEFF4B41287, OS:18.0, name:iPhone 16 Pro } [14:41:54]: ▸ { platform:iOS Simulator, id:9B502AE5-5C59-44F6-9B40-5EEFF4B41287, OS:18.0, name:iPhone 16 Pro } [14:41:54]: ▸ { platform:iOS Simulator, id:BF669998-6B1B-4787-9673-4326B1C95F5F, OS:18.0, name:iPhone 16 Pro Max } [14:41:54]: ▸ { platform:iOS Simulator, id:BF669998-6B1B-4787-9673-4326B1C95F5F, OS:18.0, name:iPhone 16 Pro Max } [14:41:54]: ▸ { platform:iOS Simulator, id:C8A7E6A6-1B85-4BAF-A5CB-A988CD78D570, OS:18.0, name:iPhone SE (3rd generation) } [14:41:54]: ▸ { platform:iOS Simulator, id:C8A7E6A6-1B85-4BAF-A5CB-A988CD78D570, OS:18.0, name:iPhone SE (3rd generation) }

----- xcbeautify ----- Version: 2.11.0

2024-09-19 14:41:53.519 xcodebuild[14556:3364128] Writing error result bundle to /var/folders/ms/lrk4_z852q595bcwwfh0ftcm0000gn/T/ResultBundle_2024-19-09_14-41-0053.xcresult xcodebuild: error: Unable to find a destination matching the provided destination specifier: { platform:iOS Simulator, id:1AAD87BC-67DD-4E68-B81E-823410576F3B }

    Available destinations for the "FastlaneTest" scheme:
            { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006000-001205E42238801E, name:My Mac }
            { platform:iOS, arch:arm64, id:00008110-000E182C1E43801E, name:iPad mini }
            { platform:iOS, arch:arm64, id:00008101-000674C80E98001E, name:iPhone mini }
            { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
            { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
            { platform:iOS Simulator, id:9EBE88EB-B43C-439F-BDF6-C79C43DE51E0, OS:18.0, name:iPad (10th generation) }
            { platform:iOS Simulator, id:9EBE88EB-B43C-439F-BDF6-C79C43DE51E0, OS:18.0, name:iPad (10th generation) }
            { platform:iOS Simulator, id:5116FFA8-B50F-45EE-A62B-02467FE8C256, OS:18.0, name:iPad Air 11-inch (M2) }
            { platform:iOS Simulator, id:5116FFA8-B50F-45EE-A62B-02467FE8C256, OS:18.0, name:iPad Air 11-inch (M2) }
            { platform:iOS Simulator, id:BCCD7C77-BF2F-4E2D-89BB-CC32BBF9415C, OS:18.0, name:iPad Air 13-inch (M2) }
            { platform:iOS Simulator, id:BCCD7C77-BF2F-4E2D-89BB-CC32BBF9415C, OS:18.0, name:iPad Air 13-inch (M2) }
            { platform:iOS Simulator, id:060F47A1-B9D3-4A2F-A0F3-C23975130444, OS:18.0, name:iPad Pro 11-inch (M4) }
            { platform:iOS Simulator, id:060F47A1-B9D3-4A2F-A0F3-C23975130444, OS:18.0, name:iPad Pro 11-inch (M4) }
            { platform:iOS Simulator, id:D03E4F0B-3741-40E0-9420-5194A78874BB, OS:18.0, name:iPad Pro 13-inch (M4) }
            { platform:iOS Simulator, id:D03E4F0B-3741-40E0-9420-5194A78874BB, OS:18.0, name:iPad Pro 13-inch (M4) }
            { platform:iOS Simulator, id:7F9C7DEE-5EF9-4A03-AC5D-0453F4AC5D09, OS:18.0, name:iPad mini (6th generation) }
            { platform:iOS Simulator, id:7F9C7DEE-5EF9-4A03-AC5D-0453F4AC5D09, OS:18.0, name:iPad mini (6th generation) }
            { platform:iOS Simulator, id:DBA85C08-D27A-4DAA-96E2-D1A148D6C632, OS:18.0, name:iPhone 15 }
            { platform:iOS Simulator, id:DBA85C08-D27A-4DAA-96E2-D1A148D6C632, OS:18.0, name:iPhone 15 }
            { platform:iOS Simulator, id:1AD7239D-81E5-4B3D-9F07-71C1F37931BC, OS:18.0, name:iPhone 15 Plus }
            { platform:iOS Simulator, id:1AD7239D-81E5-4B3D-9F07-71C1F37931BC, OS:18.0, name:iPhone 15 Plus }
            { platform:iOS Simulator, id:E931629D-1562-4940-85BA-07C2728B9785, OS:18.0, name:iPhone 15 Pro }
            { platform:iOS Simulator, id:E931629D-1562-4940-85BA-07C2728B9785, OS:18.0, name:iPhone 15 Pro }
            { platform:iOS Simulator, id:E3ABF2B9-D949-4A4F-9FD6-C3A7A640E615, OS:18.0, name:iPhone 15 Pro Max }
            { platform:iOS Simulator, id:E3ABF2B9-D949-4A4F-9FD6-C3A7A640E615, OS:18.0, name:iPhone 15 Pro Max }
            { platform:iOS Simulator, id:32A021CE-E291-4C21-8A5C-B5C9644282B4, OS:18.0, name:iPhone 16 }
            { platform:iOS Simulator, id:32A021CE-E291-4C21-8A5C-B5C9644282B4, OS:18.0, name:iPhone 16 }
            { platform:iOS Simulator, id:F9557166-EEE6-4E64-8B48-842899847CDD, OS:18.0, name:iPhone 16 Plus }
            { platform:iOS Simulator, id:F9557166-EEE6-4E64-8B48-842899847CDD, OS:18.0, name:iPhone 16 Plus }
            { platform:iOS Simulator, id:9B502AE5-5C59-44F6-9B40-5EEFF4B41287, OS:18.0, name:iPhone 16 Pro }
            { platform:iOS Simulator, id:9B502AE5-5C59-44F6-9B40-5EEFF4B41287, OS:18.0, name:iPhone 16 Pro }
            { platform:iOS Simulator, id:BF669998-6B1B-4787-9673-4326B1C95F5F, OS:18.0, name:iPhone 16 Pro Max }
            { platform:iOS Simulator, id:BF669998-6B1B-4787-9673-4326B1C95F5F, OS:18.0, name:iPhone 16 Pro Max }
            { platform:iOS Simulator, id:C8A7E6A6-1B85-4BAF-A5CB-A988CD78D570, OS:18.0, name:iPhone SE (3rd generation) }
            { platform:iOS Simulator, id:C8A7E6A6-1B85-4BAF-A5CB-A988CD78D570, OS:18.0, name:iPhone SE (3rd generation) }

[14:41:54]: Exit status: 70 ±-----------------------------------------------------------------------------------------------------------------------+ | Lane Context | ±-----------------------------±----------------------------------------------------------------------------------------+ | DEFAULT_PLATFORM | ios | | PLATFORM_NAME | ios | | LANE_NAME | ios test | | SCAN_GENERATED_XCRESULT_PATH | | | SCAN_DERIVED_DATA_PATH | /Users/felix/Library/Developer/Xcode/DerivedData/FastlaneTest-bwxhtcnapwlereboqpwttbqm | | | ursk | | SCAN_GENERATED_PLIST_FILES | [] | | SCAN_GENERATED_PLIST_FILE | | ±-----------------------------±----------------------------------------------------------------------------------------+ [14:41:54]: Called from Fastfile at line 5 [14:41:54]: [14:41:54]: 3: platform :ios do [14:41:54]: 4: lane :test do [14:41:54]: => 5: scan( [14:41:54]: 6: project: "FastlaneTest.xcodeproj", [14:41:54]: 7: devices: ["iPhone 16 Pro"] [14:41:54]: [14:41:54]: Error building/testing the application. See the log above.

±--------------------------------------+ | fastlane summary | ±-----±-----------------±------------+ | Step | Action | Time (in s) | ±-----±-----------------±------------+ | 1 | default_platform | 0 | | 💥 | scan | 5 | ±-----±-----------------±------------+

[14:41:54]: fastlane finished with errors

[!] Error building/testing the application. See the log above.

Environment

 
✅ fastlane environment ✅

Stack

Key Value
OS 15.0
Ruby 3.3.5
Bundler? true
Git git version 2.39.5 (Apple Git-154)
Installation Source /opt/homebrew/lib/ruby/gems/3.3.0/bin/fastlane
Host macOS 15.0 (24A335)
Ruby Lib Dir /opt/homebrew/Cellar/ruby/3.3.5/lib
OpenSSL Version OpenSSL 3.3.1 4 Jun 2024
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-16.0.0.app/Contents/Developer/
Xcode Version 16.0
Swift Version 6.0

System Locale

Variable Value
LANG en_US.UTF-8 ✅
LC_ALL en_US.UTF-8 ✅
LANGUAGE en_US.UTF-8 ✅

fastlane files:

`./fastlane/Fastfile`
default_platform(:ios)

platform :ios do
  lane :test do
    scan(
      project: "FastlaneTest.xcodeproj",
      devices: ["iPhone 16 Pro"]
    )
  end
end
`./fastlane/Appfile`
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple Developer Portal username


# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem Version Update-Status
fastlane 2.222.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
error_highlight 0.6.0
did_you_mean 1.6.3
syntax_suggest 2.0.0
bundler 2.5.19
pathname 0.3.0
rake 13.2.1
base64 0.2.0
nkf 0.2.0
rexml 3.3.7
CFPropertyList 3.0.7
public_suffix 6.0.1
addressable 2.8.7
artifactory 3.0.17
atomos 0.1.3
aws-eventstream 1.3.0
aws-partitions 1.977.0
aws-sigv4 1.10.0
jmespath 1.6.2
aws-sdk-core 3.206.0
aws-sdk-kms 1.91.0
aws-sdk-s3 1.163.0
babosa 1.0.4
claide 1.1.0
colored 1.2
colored2 3.1.2
highline 2.0.3
commander 4.6.0
declarative 0.0.20
digest-crc 0.6.5
domain_name 0.6.20240107
dotenv 2.8.1
emoji_regex 3.2.3
excon 0.111.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
multipart-post 2.4.1
faraday-multipart 1.0.4
faraday-net_http 1.0.2
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
faraday-retry 1.0.3
ruby2_keywords 0.0.5
faraday 1.10.3
http-cookie 1.0.7
faraday-cookie_jar 0.0.7
faraday_middleware 1.2.0
fastimage 2.3.1
gh_inspector 1.1.3
jwt 2.9.0
multi_json 1.15.0
os 1.1.4
signet 0.19.0
googleauth 1.8.1
httpclient 2.8.3
mini_mime 1.1.5
trailblazer-option 0.1.2
uber 0.1.0
representable 3.2.0
retriable 3.1.2
google-apis-core 0.11.3
google-apis-androidpublisher_v3 0.54.0
google-apis-playcustomapp_v1 0.13.0
google-cloud-env 1.6.0
google-apis-iamcredentials_v1 0.17.0
google-apis-storage_v1 0.31.0
google-cloud-errors 1.4.0
google-cloud-core 1.7.1
google-cloud-storage 1.47.0
json 2.7.2
mini_magick 4.13.2
naturally 2.2.1
optparse 0.5.0
plist 3.7.1
rubyzip 2.3.2
security 0.1.5
simctl 1.6.10
terminal-notifier 2.0.0
unicode-display_width 2.6.0
terminal-table 3.0.2
tty-screen 0.8.2
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
nanaimo 0.3.0
xcodeproj 1.25.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.1

generated on: 2024-09-19

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 11
  • Comments: 30 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@FelixLisczyk: We had this issue too and was able to resolve it by specifying the OS version as well like this devices: ["iPhone 16 Pro (18.0)"]. Hope this helps you as well, it worked for us 😄

iOS dev in 2024 and 2025 is SO DEAD because nobody including apple gives a f**k on this

This is still an issue.

I’m using: fastlane 2.226.0 Xcode 16.2 MacOS Sequoia 15.2

I’m not able to run tests with scan in any fashion. I can create simulators via simctl, open them and they work correctly, but scan will just not find them. Tests run through Xcode fine. Tests run through CLI work fine as well.

xcodebuild test
-workspace abc.xcworkspace
-scheme abcTests
-destination “platform=iOS Simulator,name=iPad (10th generation),OS=18.2”

I still have that issue even on Xcode 16.1 and with macOS 15. I’ve tried the devices: ["iPhone 16 Pro (18.0)"] methode and specify it with destination, with the target simulator booted or not, and i still stubble on :

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
		{ platform:iOS Simulator, id:712833E2-D8B6-4696-8323-5C742D99B530 }

We’ve been having this same issue since upgrading to Xcode 16.0 (16A242d) except we generate new simulators with a unique name. Here’s an example:

fastlane:

xcrun simctl create 'IOS-TESTS-JOB3-8575 2024-09-20 03:46:50 iPhone-15 iOS-18-0' 'com.apple.CoreSimulator.SimDeviceType.iPhone-15' 'com.apple.CoreSimulator.SimRuntime.iOS-18-0'
Created simulator for com.apple.CoreSimulator.SimDeviceType.iPhone-15 18.0 with id: 60CA4E09-20E2-4924-95EE-B36FF32CAE1B

If then run xcrun simctl list devices on this machine, that new sim is in the list:

IOS-TESTS-JOB3-8575 2024-09-20 03:46:50 iPhone-15 iOS-18-0 (60CA4E09-20E2-4924-95EE-B36FF32CAE1B) (Shutdown) 

fastlane however says

Ignoring 'IOS-TESTS-JOB3-8575 2024-09-20 03:46:50 iPhone-15 iOS-18-0', couldn't find matching simulator

We have made no changes to our Fastfile and this exact setup was working perfectly until we upgraded from Xcode 16 RC1 to 16.0. Instantly after, fastlane stopped being able to select a sim that it just created.

@FelixLisczyk: We had this issue too and was able to resolve it by specifying the OS version as well like this devices: ["iPhone 16 Pro (18.0)"]. Hope this helps you as well, it worked for us 😄

This is works for me too, first cuz we modified the simulator name locally and I didn’t catch it until Actions spilt out all supported simulators. among them, this is what I need

{ platform:iOS Simulator, id:2E123A37-D337-468B-87E5-B66C7EA2B29D, OS:18.1, name:iPad (10th generation) }

Then I added the following line to Fastfile

destination: "platform=iOS Simulator,name=iPad (10th generation),OS=18.1",

But I still get the following error and the Fastlane will pick a different simulator

Image

After I tried @asghol 's method, and added the following line to the Fastfile magic just happened and the Fastlane is able to find and boot the correct simulator

device: "iPad (10th generation) (18.1)", 
Image

I have no idea what happened under the hood,

p.s. here is the top of my .yml file

name: Pull Request

on:
  pull_request:
    branches:
      - main
  workflow_dispatch:

jobs:
  test:
    runs-on: macos-14
    permissions:
      actions: write       # Necessary to cancel workflow executions
      checks: write        # Necessary to write reports
      pull-requests: write # Necessary to comment on PRs
      contents: read
      packages: write
    steps:
      - uses: actions/checkout@v4.2.2
      ......