LoginSignup
1
1

More than 5 years have passed since last update.

ponydebuggerを試してみる

Last updated at Posted at 2015-02-16

先週のiosオールスターズは行ってないのですが、スライドシェアを見ていて、
ponydebuggerを使ったことなかったので試してみました

まずは、インストールから

curl -sk https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
pipe>   python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger

あれ、うまくいったのかわからない

curl -k https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
pipe>   python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger

いきなりコケる

curl: (35) ssl peer handshake failed, the server most likely requires a client certificate to connect

curlのオプションつけるのやめる

curl https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
  python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger
Collecting pybonjour (from ponydebugger)
  Could not find any downloads that satisfy the requirement pybonjour (from ponydebugger)
  Some externally hosted files were ignored as access to them may be unreliable (use --allow-external pybonjour to allow).
  No distributions at all found for pybonjour (from ponydebugger)
Traceback (most recent call last):
  File "<stdin>", line 2462, in <module>
  File "<stdin>", line 946, in main
  File "<stdin>", line 1794, in after_install
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/shhirats/Library/PonyDebugger/bin/pip', 'install', '-U', '-e', 'git+https://github.com/square/PonyDebugger.git#egg=ponydebugger']' returned non-zero exit status 1

コケた際ってのを試す

pip install -U -e git+https://github.com/square/PonyDebugger.git#egg=ponydebugger --allow-external pybonjour --allow-unverified pybonjour
zsh: command not found: pip

あれ、入ってなかったっけ。ってことで入れる
http://www.sicafe.net/macPackageManageTips/html/homebrewPythonInstall.html

上の通りにやったあと、リトライ

したら、以下のエラーでコケたので質問、そして解決
http://ja.stackoverflow.com/questions/6538/ponydebugger%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%A7%E3%81%93%E3%81%91%E3%82%8B?noredirect=1#comment5595_6538

シングルクォーテーションでうまくいくとは。。。

サンプルを試す

そのあと、
https://github.com/square/PonyDebugger
のサンプル試したけど、うまくいかず。。。

/Users/xxxxx/PonyDebugger-master/ObjC/PonyDebugger/PDDebugger.m:12:9: 'SocketRocket/SRWebSocket.h' file not found

うん、何故だろう。

最終的に
自分のカフェさがしを試したら、うまく動いた!

ネットワークとかで実行にかかってる秒数とかわかっていいですね!(画像あとで載せます)
あとで画像載せます

自分の備忘録として書きました。ハマリポイントも合ったので参考になれば幸いです。

起動

ローカルで以下コマンド

{15-03-03 0:07}[ruby-2.1.0]server:~@master✗✗✗✗✗✗ shiratsu% ponyd serve --listen-interface=127.0.0.1

あとは、シミュレータでアプリ実行すれば動きます
残念ながら多分実機は無理なきがする。

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