0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

2.4.4.1.Appiumのインストール時のログ出力内容

Last updated at Posted at 2024-11-22

2.4.4.1.Appiumのインストール時のログ出力内容


Appiumインストール時に表示されるログについて解説します。


・目次

2.4.4.1.Appiumのインストール時のログ
2.4.4.2.appium driver doctor xcuitest 実行時のログ
2.4.4.3.appium-doctor --ios 実行時のログ

2.4.4.4.appium  実行時のログ



2.4.4.1.Appiumのインストール時のログ

下記コマンド実行時に表示されるログの種類は以下3つです。

ターミナル.
>npm install -g appium

error :インストール失敗 (例:npm ERR! code ENOENT)
notice:注意を喚起 (使用に影響なし)
warn :非推奨の機能に関する警告 (バージョンが古かったり、サポート外になったものなど)



・notice

出力内容 原因  対策 
npm notice New patch version of npm available! 10.8.2 -> 10.8.3 npmが古く更新可能 npm install -g npm 

・warn

出力内容 原因  対策 
npm warn deprecated are-we-there-yet@3.0.1 非推奨のパッケージ npm install -g npm@latest 
npm warn deprecated are-we-there-yet@4.0.2 非推奨のパッケージ npm install -g npm@latest 
npm warn deprecated authorize-ios@1.2.1 appiumへ統合したため削除 npm uninstall authorize-ios 
npm warn deprecated debug@4.1.1 セキュリティリスク有 npm install debug@latest 
npm warn deprecated gauge@4.0.4 非推奨のパッケージ  
npm warn deprecated gauge@5.0.2 非推奨のパッケージ  
npm warn deprecated glob@6.0.4 非推奨のパッケージ  npm install glob@latest 
npm warn deprecated glob@7.2.3 非推奨のパッケージ npm install glob@latest 
npm warn deprecated glob@8.1.0 非推奨のパッケージ npm install glob@latest 
npm warn deprecated inflight@1.0.6 非推奨のパッケージ  
npm warn deprecated npmlog@6.0.2 非推奨のパッケージ  
npm warn deprecated npmlog@7.0.1 非推奨のパッケージ  
npm warn deprecated rimraf@2.4.5 非推奨のパッケージ npm install rimraf@latest 
npm warn deprecated rimraf@3.0.2 非推奨のパッケージ npm install rimraf@latest 



2.4.4.2.appium driver doctor xcuitest 実行時のログ

下記コマンド実行時に表示されるログは以下です。

ターミナル.
>appium driver doctor xcuitest
出力内容 原因  対策 
WARN Doctor ✖ idb is not installed 未インストール シミュレーターで位置情報機能を使用したい場合インストール 
ERR! Xcode '/Library/Developer/CommandLineTools' is not a valid Xcode path. Consider running: Xcodeのパスが正しく設定されていない sudo xcode-select -s "/Applications/Xcode.app/Contents/Developer" 



2.4.4.3.appium-doctor --ios 実行時のログ

下記コマンド実行時に表示されるログの種類は以下3つです。
※appium-doctorは非推奨になったため、【appium driver doctor XXX】を使用してください。

ターミナル.
>appium-doctor --ios
出力内容 原因  対策 
WARN AppiumDoctor [Deprecated] Please use appium-doctor installed 非推奨のパッケージ AppiumDoctorを削除 
WARN AppiumDoctor ✖ opencv4nodejs cannot be found. 未インストール 画像比較機能を使用したい場合インストール 
WARN AppiumDoctor ✖ mjpeg-consumer cannot be found. 未インストール MJPEG-over-HTTP 機能を使用したい場合インストール 
WARN AppiumDoctor ✖ set-simulator-location is not installed 未インストール シミュレーターで位置情報機能を使用したい場合インストール 
WARN AppiumDoctor ✖ idb is not installed 未インストール 実機にアプリをインストールしたい場合インストール 



2.4.4.4.appium  実行時のログ


Appium Inspectorを実行時に発生するエラー
出力内容 原因  対策 
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 65. WebDriverAgentLib の設定不足 以下参照 
Failed to create session. An unknown server-side error occurred while processing the command. アプリ名の設定誤り アプリ名(バンドルID)を見直し 
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. WebDriverAgentの起動に失敗 
 →Appiumインストール時にsudoでインストールしている 
Appiumを一度削除し、sudo以外でインストールする

1.以下コマンドを実行しWebDriverAgentが存在するか確認する

ターミナル.
>find ~/.appium -name "WebDriverAgent.xcodeproj"

2.FinderでWebDriverAgentのパスに移動する
 「command」+「shift」+「.」で非表示フォルダの表示可能
 ウィンドウタブ>移動>ホーム

3.WebDriverAgentをクリックして開く

4.targets欄を確認し、WebDriverAgentRunnerを選択
5.Signing & Capabilities タブで、適切な チーム (Team) を選択。
6.Bundle Identifierに任意の値を入れる
 例)com.test.WebDriverAgentRunner
7.targets欄を確認し、WebDriverAgentLibを選択し5.6.を実施
8.上部のデバイスセレクターで実機デバイスを選択。
9.左上の「Run」ボタンをクリックし、ビルドが成功したら実機に WebDriverAgentRunner がインストールされる


10.以下コマンドを実行し、署名を有効化する

ターミナル.
>xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=【端末のUDIDを指定する】' -allowProvisioningUpdates test



以上!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?