Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Official How To - Capturing Device Logs on iOS

Discussion in 'Unity IAP' started by JeffDUnity3D, May 4, 2018.

Thread Status:
Not open for further replies.
  1. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    For troubleshooting and debugging, it is often very helpful to capture the device logs. The device logs contain information about the status of a running application on the device and any errors encountered. The IAP Engineering team requires logs for open issues. It is assumed here that you have an iOS device attached via USB to your Mac development system. Only Development Builds can be debugged this way, it's not possible to easily view the logs of a released iOS app. You can view the system logs of released apps using the XCode console, but not output from Debug.Log

    To view Debug.Log output from a Unity app:

    * In Unity, build to iOS with Development Build selected in Build Settings
    * Open the project in XCode. It is assumed here that you have a Provisioning Profile configured.
    * Build and run the app on the device (Command+R)
    * Open the console output window (View/Debug Area/Activate Console
    * In addition to the System output messages, you will also see your Debug.Log output here.
    * You can use the Filter option at the bottom of this window to limit the text output
    * Copy the output and paste into a text editor
     
    Last edited: May 7, 2018
Thread Status:
Not open for further replies.