Help us understand the problem. What is going on with this article?

ponydebuggerを試してみる

More than 3 years have passed since last update.

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

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

http://qiita.com/edo_m18/items/d0c42a988010e1504f1c

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

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした