question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find a destination matching the provided destination specifier

See original GitHub issue

Bug Report

I’m having an error when I execute cordova build.

error: Unable to find a destination matching the provided destination specifier: { platform:iOS Simulator, OS:latest, name:iPhone 11 Pro Max }

Since my app only builds on iPad, I think I need to set a build target to an iPad, but I’m not sure how to do this.

My config.xml has these tags to specify iPad only:

    <preference name="target-device" value="tablet" />
    <preference name="deployment-target" value="10.3" />

The full error reads:

Reading build config file:
No simulator found for ". Falling back to the default target.
Building for "iPhone 11 Pro Max" Simulator (com.apple.CoreSimulator.SimDeviceType.iPhone-11-Pro-Max, iPhone-11-Pro-Max).
Building project: /Users/lucaban/.ghq/github.com/mesqueeb/sokketsu/src-cordova/platforms/ios/Sokketsu.xcworkspace
	Configuration: Debug
	Platform: emulator
	Target: iPhone 11 Pro Max
Running command: xcodebuild -workspace Sokketsu.xcworkspace -scheme Sokketsu -configuration Debug -sdk iphonesimulator -destination platform=iOS Simulator,name=iPhone 11 Pro Max build CONFIGURATION_BUILD_DIR=/Users/lucaban/.ghq/github.com/mesqueeb/sokketsu/src-cordova/platforms/ios/build/emulator SHARED_PRECOMPS_DIR=/Users/lucaban/.ghq/github.com/mesqueeb/sokketsu/src-cordova/platforms/ios/build/sharedpch
Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/lucaban/.ghq/github.com/mesqueeb/sokketsu/src-cordova/platforms/ios/build/emulator
    SDKROOT = iphonesimulator13.1
    SHARED_PRECOMPS_DIR = /Users/lucaban/.ghq/github.com/mesqueeb/sokketsu/src-cordova/platforms/ios/build/sharedpch

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
		{ platform:iOS Simulator, OS:latest, name:iPhone 11 Pro Max }

	Available destinations for the "Sokketsu" scheme:
		{ platform:iOS Simulator, id:B90FC025-F8EB-40B3-90C5-E9094C0FFD17, OS:13.1, name:iPad Air (3rd generation) }
		{ platform:iOS Simulator, id:3131A6AD-3C4E-4CEA-8889-9C7E22EAF816, OS:13.1, name:iPad Pro (9.7-inch) }
		{ platform:iOS Simulator, id:A8055BC4-F95C-43FA-8B28-7FACBD3D57B6, OS:13.1, name:iPad Pro (11-inch) }
		{ platform:iOS Simulator, id:7FAD7B1C-70DD-407A-AC99-3ACAD2670726, OS:13.1, name:iPad Pro (12.9-inch) (3rd generation) }

	Ineligible destinations for the "Sokketsu" scheme:
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
		{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
xcodebuild: Command failed with exit code 70

What is expected to happen?

For it to build. 😄

What does actually happen?

The above error.

Information

I also tried stuff like

cordova platform rm ios
cordova platform add ios@5

But without luck.

Command or Code

cordova build

Environment, Platform, Device

  • MacOS: 10.15 Catalina

Version information

  • XCode: Version 11.1 (11A1027)
  • Cordova: cordova@9.0.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:10

github_iconTop GitHub Comments

2reactions
vargtimmencommented, Nov 12, 2019

@astme

@vargtimmen It depends on your ionic version, I assume you are using ionic v3.

You’re right, this seems to happen with ionic 3 but not 4. Thx for the hint.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode unable to find a destination… | Apple Developer Forums
Xcode unable to find a destination matching the provided destination specifier?
Read more >
xcode - Xcodebuild: Unable to find a destination matching the ...
Xcodebuild: Unable to find a destination matching the provided destination specifier ... However, I can't due to a xcodebuild error.
Read more >
Xcodebuild error: Unable to find a destination matching the ...
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/38/ ...
Read more >
xcodebuild: error: Unable to find a ... - CircleCI Support
This message may appear when trying to build an iOS app. Sometimes the simulators are not ready before the build step.
Read more >
Xcodebuild error "Unable to find a destination matching the ...
xcodebuild: error: Unable to find a destination matching the provided destination specifier: { platform:iOS Simulator, OS:latest, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found