LoginSignup
2
2

More than 5 years have passed since last update.

Magic Pod で Carthage binary is not found Error

Last updated at Posted at 2018-08-28

概要

  • Magic Pod (Desktop v0.19.2) を使ってみようかなと思ったらいきなり動かなくて困ったのを解決
  • Magic Pod は Carthage のインストール場所が固定の場所じゃないと認識できないっぽい
    • carthage にpathが通っていてもダメ
  • homebrew のインストール先(brew --prefix)をデフォルトの /usr/local から変えているとダメなので、 brew install carthage じゃなくて Carthage の Installer を使えば解決

追記(2018/08/31)

TRIDENTの伊藤さんから人伝に「GUIでPATH追加できるよー」と情報いただきました。
Magic Pod Desktop のウィンドウの下の方にある「Environment variables」に PATH=hogehoge:$PATH とか書くと追加できるのかな?

Magic Pod とは

  • TRIDENT Inc. の Android/iOS テスト自動化ツール(appiumベース)
  • AIでテスト作成を支援してくれる
  • 実機/シミュレータ対応
  • NTTレゾナントのクラウド実機検証サービス Remote TestKit とも連携可能

Install and Setup

公式サイト参照
https://www.trident-qa.com/magic-pod-help/

Error

Magic Pod Desktop を起動して
Magic Pod Desktop > Tool > iOS Environment Check

Error: Unable to launch WebDriverAgent because of xcodebuild failure: "Carthage binary is not found. Install using `brew install carthage` if it is not installed and make sure the root folder, where carthage binary is installed, is present in PATH environment variable. The current PATH value: '/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/Applications/Magic Pod Desktop.app/Contents/Resources/app/node_modules/ios-deploy/build/Release'".

Carthage binary is not found?

$ brew install carthage
$ which carthage
/Users/username/homebrew/bin/carthage

あるじゃん?

ダメだった対処法1

carthage のシンボリックリンクを
/Applications/Magic Pod Desktop.app/Contents/Resources/app/node_modules/ios-deploy/build/Release
にコピー

ダメだった対処法2

appiumを独立にインストールしてみる

$ npm install -g appium
$ npm install -g appium-doctor
$ appium-doctor --ios
...略...
info AppiumDoctor Everything looks good, bye!

ってなるけどMagic Podの方は解決せず(まぁそうだよね。。)

#試さなかったけど自分で立ち上げた appium server のアドレスを Magic Pod に設定ファイルで渡して使う のもできるようなので、そうすればうまくいくのかもしれない

今回の対処

結局 echo $PATH の結果とエラーテキストの The current PATH value が一致していない。
このPATHに追加する方法はちょっと分からずだったので、 Carthage のインストール場所を変更することに。

$ brew uninstall carthage

Installing Carthage (Github)

を参考に、 Carthage.pkg をDLして実行

$ which carthage
/usr/local/bin/carthage

再度 iOS Environment Check 実行

Check succeeded!

感想

まぁ homebrew の prefix を変更してる人とかあんまりいないんでしょうね。。
Carthage を installer で別ディスクに入れてる人とかはいるかもしれない。
動いてよかったよかった。

2
2
2

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