実現したいこと
iPhoneにビルドされたUnityのExceptionについて、
UnityEditorで実行したExceptionのように、ソースパスと、行番号を取得したい。
前提
iPhoneにビルドされたUnityは、自分で作成しています。
発生している問題
iPhoneにビルドされたUnityのExceptionはこの様になってます。
xcodeの出力画面
Exception: System.NullReferenceException: Object reference not set to an instance of an object. at NullReferenceExceptionScene.Start () [0x00000] in <00000000000000000000000000000000>:0
このようにソースパスと、行番号がついてると良いです。
ちなみに、これはUnityEditorで実行したExceptionです。
Exception: System.NullReferenceException: Object reference not set to an instance of an object at NullReferenceExceptionScene.Start () [0x00000] in Assets/Scripts/Scene/NullReferenceExceptionSample.cs:15
該当のソースコード
c#
1 try 2 { 3 text.text = "aa"; 4 } 5 catch (Exception e) 6 { 7 Debug.LogError("Exception: " + e); 8 }
試したこと
UnityのiOSのRun in Xcode as をReleaseからDebugにしましたが、ソースパス、行番号は、表示されませんでした。
補足情報(FW/ツールのバージョンなど)
Unity 2022.3.0

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。