3
8

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 5 years have passed since last update.

appiumをiOSの実機で使うまでの手順・方法

Posted at

appiumをiOSの実機で動かすまでの手順です。

使用環境

使用環境は以下の通りです。
Xcode, command line toolsはインストール済とします。

Mac OS Catalina(10.15.2)
Xcode 11.2.1
appium v1.15.1

Appiumのダウンロード

公式サイトより環境にあった物をDLする。
http://appium.io/

Appium側の設定

ダウンロードしたら起動をし、Start Serverをクリック

スクリーンショット 2020-01-23 13.04.00.png

Start Serverをクリックするとログが出る画面になるので虫眼鏡ボタンをクリック

スクリーンショット 2020-01-23 13.05.46.png スクリーンショット 2020-01-23 10.19.40.png

Automatic Server(1)を選択し、以下のJSONを(3)のところから入力入力し保存する。(JSONを入力する画面にも保存ボタンがあるので注意)

1度保存した設定は Saved Capability Sets(2)からロードが可能です。

{
  "deviceName": "iPhone",
  "udid": "hogehogehogehoge",
  "platformName": "iOS",
  "automationName": "XCUITest",
  "useSimpleBuildTest": false,
  "platformVersion": "13.3",
  "bundleId": "hogehoge.hoge.hoge",
  "xcodeSigningId": "iPhone Developer",
  "xcodeOrgId": "hogehogehogehoge"
}

重要なのはudid、xcodeOrgIdになります。
udidはXcodeのdeviceからxcodeOrgIdはdeveloper.appleから自身のteam IDを入力します。
bundleIdを入力したアプリを起動します。
また変更した際はsaveをするのを忘れずに。

あとは実行

右下のStart Session(4)を押せば完了!!

うまくいかない場合に確認する箇所

・xcodeOrgIdで入力したteam IDでXcodeで設定からログインできているか
・deriverd dataを削除してみる

3
8
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
3
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?