LoginSignup
28

More than 5 years have passed since last update.

iOS8 extension のデバッグ方法

Posted at
  • extension はアプリケーションとは別のバンドルになるため、別プロセスで動く。

  • デバッグログは Xcode 画面下部のログウィンドウではなく、System Log Console で確認できる。

  • Swift で書いててもデバッグするには println() ではなく NSLog() を使わないとログに出力されない。(どうやらバグの様である)

  • iOSSimulator でデバッグ対象の extension を使用するアプリを起動したら、メニューバーより Debug > Open System Log.. を開いてデバッグログを確認できる。

参考: http://stackoverflow.com/questions/24031612/how-to-debug-ios-8-extensions-with-nslog

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
28