LoginSignup
29
32

More than 5 years have passed since last update.

Xcode8.xでのiPhone実機デバッグメモ

Last updated at Posted at 2017-01-31

経緯

Mac買ってSwiftちょっと触ってみたけど、Androidみたいに所持してるデバイスで動かないとなんとなくモチベーションが……
とか思ってたらXcode7から無料実機デバッグが出来るらしいという話を聞いた(今更)
なのでビール片手にやってみたが、やり方忘れそうなのでメモ

環境

  • macOS 10.12.3
  • Xcode 8.2.1
  • iOS 9.3.1

やり方

Apple ID登録

ここはやってると思うのでざっくりと
右上のリンゴマーク横の Xcode > Preferences... > Accounts からiPhoneに登録しているApple IDを登録

SigningのTeamを設定

デバッグしたいプロジェクトのプロジェクト設定を開く
General > Signing > Team で任意Teamを選択

スクリーンショット 2017-0じっこうぼたんを8.05.png

デバッグターゲットを設定

General > Signing > DevelopmentInfo > DevelopmentTarget で実機のOSバージョン以下のバージョンを指定する

スクリーンショット 2017-02-01 2.33.44.png

デバッグデバイスを選択

左上の停止ボタン横のエミュレータを指定する部分で一番上のDeviceから接続済みのiPhoneを選択

スクリーンショット 2017-02-01 2.48.38.png

実行

実行ボタンを押す
Could not launch エラーが出る場合

スクリーンショット 2017-02-01 2.35.46.png

iPhone側で 設定 > 一般 > デバイス管理
自分のAppleIDを選択し、"AppleID"を信頼 を押す

1485884411.jpg

再度実行ボタンを押す

29
32
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
29
32