LoginSignup

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 3 years have passed since last update.

iOSアプリのビルドと起動確認

Last updated at Posted at 2020-11-20

この記事は、iOSアプリ開発から公開までの流れ の第2章です。

本稿では、Xcode で iOS アプリをビルドして実行する手順を記載します。

1. ウィンドウのタイトルバーに ▶︎ ボタンがあります

このボタンをクリックすると、ビルドと実行が行われます。その前に、
1.png

2. シミュレータの機種を選択します

2.png

3. ▶︎ をクリックしてシミュレータでアプリを起動します

コンパイルエラーが発生しなければ、シミュレータが起動します。
はい、Hello, world! 終わり。
3.png

4. 次に実機で動作実行するため、iOS Deivce を選択します

USB で iPhone を Mac に接続すると、ここに iPhone の名前が表示されます。
4.png

5. パスワードを入力します

5.png

6. アプリがインストールされました

6.jpeg

7. このメッセージが表示された場合は、

7.png

8. iPhone 側で [設定] > [一般] > [プロファイルとデバイス管理]

"Apple Development: xxxxx" をタップ。
8.jpeg

9. 信頼をクリック

9.jpeg

10. アプリが信頼されました

削除する場合は、App を削除 をタップすればよいです。
10.jpeg

11. iPhone 上でもアプリが起動したことを確認できました

11.jpeg

終わり。

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