みーのぺーじ

みーが趣味でやっているPCやソフトウェアについて.Python, Javascript, Processing, Unityなど.

iOS appのDebug.Log()

Unityで作成したアプリをiOSデバイスで実行した時に、Debug.Log()などのログメッセージを確認する方法は以下の通りです。

iOS deviceをMacにUSB接続する。

XCodeを立ち上げる。

Window > Organizer を開く。

サイドメニューのDevices > device > Console

この状態で、iOS device上でappを実行します。

e.g)

def Start ():

        Debug.Log("## Application.platform="+Application.platform)

というスクリプトを実行したところ、

Oct  4 00:30:43 unknown UIKitApplication:net.atsuhiro-me.RBall002[0x5ce5][281] <Notice>: ## Application.platform=IPhonePlayer

のようなメッセージが表示されました。