0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Xcode + Swift でiPhone用 地図アプリ。(21日目) 

Last updated at Posted at 2022-01-12

昨日は、C# WinForms + GMap.NET で地図アプリを作ったので、今日は、swiftでiPhone用の地図アプリ作成に挑戦。

Qiitaに分かりやすい記事を書かれてる方がいたので参考にさせてもらいました。

参考サイト

環境

・Macbook Air 2020 (Big Sur 11.5)
・Xcode 12.4-> 13.2.1
・iPhone11 14.6

プロジェクト作成

1.jpg

2.jpg

3.jpg

4.jpg

MapKit.frameworkを追加

[MyGpsMap]
->[Build Phase]
->[Link Binary With Libraries]
->[MapKit.framework]

5.jpg

[Map Kit View]をドラッグアンドドロップ

[Main storyboard]
->選択

[View]
->[Show Library]
  ->[検索窓]
   ->[map]

[Map Kit View]をドラッグアンドドロップして拡大

実行(エミュレーター)

スクリーンショット 2022-01-12 11.33.35.jpg

実行(実機:iPhone11)

xcodeで実機が認識しない(参考サイト)

ERROR: xcode doesn't support iphone iOS 14.x

参考サイト:

イメージ7582.jpg

スクリーンショット 2022-01-12 11.45.09.jpg

スクリーンショット 2022-01-12 11.45.48.jpg

ERROR: Signing for "TrashAPP" requires a development team. Select a development team in the Signing & Capabilities editor.

スクリーンショット 2022-01-12 12.22.27.jpg

スクリーンショット 2022-01-12 12.23.32.jpg

ERRORS were encountered while processing

12.jpg

参考サイト:

 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で無事動作

ここまでやって無事起動。

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?