0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier

Last updated at Posted at 2024-07-16

はじめに

vscodeでflutterのdebugを行おうとするとタイトルのエラーが発生しました。
エラーメッセージ読んでもよくわから図、かなりはまってしまった為備忘録として残します。

問題

発生したエラー

Launching lib/main.dart on iPhone 15 Pro Max in debug mode...
Xcode build done.                                            2.3s
Failed to build iOS app
Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier:
		{ id:DB36E98A-36F9-4D63-8AB4-071487E833BD }

	Available destinations for the "Runner" scheme:
		{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00008103-000405893ABB001E, name:My Mac }
		{ platform:iOS, arch:arm64, id:00008020-001270E91A3A002E, name:iPhone }
		{ platform:iOS, arch:arm64, id:00008110-000624D92263A01E, name:iPhone }
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }

Could not build the application for the simulator.
Error launching application on iPhone 15 Pro Max.

Exited (1).

指定されたデバイスがないよ的なエラーに見える

やったこと

flutter devices

$ flutter devices
Found 5 connected devices:
  iPhone (mobile)           • 00008020-001270E91A3A002E            • ios            • iOS 17.5.1 21F90
  iPhone 15 Pro Max (mobile)      • DB36E98A-36F9-4D63-8AB4-071487E833BD • ios            •
  com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
  macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.0 23A344
  darwin-arm64
  Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.0 23A344
  darwin-arm64
  Chrome (web)                    • chrome                               • web-javascript • Google Chrome
  126.0.6478.127

Found 1 wirelessly connected device:
  iPhone (mobile) • 00008110-000624D92263A01E • ios • iOS 17.5.1 21F90

Run "flutter emulators" to list and start any available device emulators.

If you expected another device to be detected, please run "flutter doctor" to diagnose potential issues. You
may also try increasing the time to wait for connected devices with the "--device-timeout" flag. Visit
https://flutter.dev/setup/ for troubleshooting tips.

うーん、あるよね??

iPhone 15 Pro Max (mobile)      • DB36E98A-36F9-4D63-8AB4-071487E833BD • ios  
Uncategorized (Xcode): Unable to find a destination matching the provided destination specifier:
		{ id:DB36E98A-36F9-4D63-8AB4-071487E833BD }

xcodeから直接ビルド

build失敗して、ログには3秒だけ「Module 'cloud_firestore' not found」とエラーが出た
さらによくわからなくなり迷子に

原因

xcode(Version 15.4)のSchemeの設定が誤っていた。
Product -> Scheme -> EditScheme -> Build Configurationのところが
「debug」ではなく「release」になっていた。

理由

app store connectにアプリをアップロードする際releaseに変更したのですが、
その後debugに戻すのを忘れていた侍😭

解決

Schemeの設定をrelease から debug に戻し、vscodeでdebugすることができました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?