LoginSignup
6
6

More than 5 years have passed since last update.

PonyDebuggerを使ってみたい

Posted at

詳しい人助けてください。

この辺を参考にしながらインストールしてponydを起動

https://github.com/square/PonyDebugger
https://github.com/square/PonyDebugger/issues/126

ponyd serve --listen-interface=127.0.0.1

アプリを起動すると、http://localhost:9000/ に端末の情報が来ていた。

アプリ立ち上げたところ

が、これ以上なにも情報が出ない。
アプリ側の設定はこう。
ネットワークとビューの階層構造を監視する設定にしているんだけど。。

AppDelegate.swift
  func setupPonyDebugger(launchOptions: [NSObject: AnyObject]?) {
    let ponyDebugger = PDDebugger.defaultInstance()
    ponyDebugger.enableNetworkTrafficDebugging()
    ponyDebugger.enableViewHierarchyDebugging()
    ponyDebugger.setDisplayedViewAttributeKeyPaths(["frame", "hidden", "alpha"])
    ponyDebugger.forwardAllNetworkTraffic()
    ponyDebugger.connectToURL(NSURL(string: "ws://localhost:9000/device"))
  }
  func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    setupParse(launchOptions)
    setupPonyDebugger(launchOptions)
    return true
  }
platform :ios, "8.1"
pod 'AAShareBubbles', '~> 1.0.3'
pod 'FontAwesomeKit'
pod 'PureLayout'
pod 'Facebook-iOS-SDK'
pod 'PonyDebugger'

うーんと唸りながらリポジトリのREADMEをよく見ると、既知の問題としてこんな記述が。

CoreData.framework must be linked, even if you do not use the Core Data browsing functionality.

お、これか?
ということでCoreData.frameworkを追加。

+ボタンを押して追加

再起動。

状況変わらず。結局よくわからなかった。。

Xcode6.1.1

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