昨日は、C# WinForms + GMap.NET で地図アプリを作ったので、今日は、swiftでiPhone用の地図アプリ作成に挑戦。
Qiitaに分かりやすい記事を書かれてる方がいたので参考にさせてもらいました。
参考サイト
環境
・Macbook Air 2020 (Big Sur 11.5)
・Xcode 12.4-> 13.2.1
・iPhone11 14.6
プロジェクト作成
MapKit.frameworkを追加
[MyGpsMap]
->[Build Phase]
->[Link Binary With Libraries]
->[MapKit.framework]
[Map Kit View]をドラッグアンドドロップ
[Main storyboard]
->選択
[View]
->[Show Library]
->[検索窓]
->[map]
[Map Kit View]をドラッグアンドドロップして拡大
実行(エミュレーター)
実行(実機:iPhone11)
xcodeで実機が認識しない(参考サイト)
ERROR: xcode doesn't support iphone iOS 14.x
参考サイト:
ERROR: Signing for "TrashAPP" requires a development team. Select a development team in the Signing & Capabilities editor.
ERRORS were encountered while processing
参考サイト:
I know this is just echoing the other answers here, but at the very least, I would recommend just starting with a simple phone restart and seeing if that fixes your problem. Here is the specific screenshot that I encountered, in case yours is the same (pro tip: you can open up the "Devices and Simulators" window by going to Window -> Devices and Simulators shift-command-2).
スマホ再起動しても解決せず。
xcodeをアップデート
半日ぐらい時間がかかりました・・・
ERRO:iphone is busy fetching debug symbols for ~
[XcodeのDevice and Simulator]
->[Unpair Device]
ケーブルを抜いて再接続
信頼されていないデベロッパーダイアログ
[iPhone]
->[設定]
->[一般]
->[デバイス管理]
iPhone11で無事動作
ここまでやって無事起動。











