Table of Contents

Log analysis on iOS/macOS/visionOS

For logs on native (iOS/macOS), Unity (iOS/macOS/visionOS), and Unity Editor (macOS), refer to the following instructions.

Log acquisition method

If you need to analyze an application on an iOS/visionOS device, connect the device to a macOS development machine using a USB cable. If you need to analyze an application or program on a macOS device, this step is not required.

On the macOS development machine, open Finder -> Applications -> Utilities -> Console. In Console, click Start streaming, then run the program you need to analyze. Open the application or program until logs appear in Console. Right-click on that log and select Show Process "<application name>" to view all logs for that application or program process.

Here is an example.

log macOS

Press Cmd + A to select all logs, then press Cmd + C to copy the logs to the clipboard.

For programs on macOS, if it's a command-line program, logs can also be obtained from the terminal.

Additionally, you can debug the application or program through Xcode and obtain logs from Xcode's log window.

Unity built-in logs

When developing applications using Unity, besides the platform's native log analysis methods, the Unity Editor provides additional debugging tools.

Unity logs are divided into Unity Editor logs and Unity Player logs, which can be obtained through the following methods.

Unity environment Operating system Log location
Editor macOS ~/Library/Logs/Unity/Editor.log
Player iOS Use Xcode's lldb console
Player macOS ~/Library/Logs/Company Name/Product Name/Player.log

The Editor log can also be opened via the Open Editor Log command in the Console window's top-right menu.

Understanding logs

When analyzing errors, it is often necessary to clarify the conditions under which the error occurred, such as the called function, parameters, and related state.

Notes for feedback

  • Version numbers of EasyAR Sense and EasyAR Sense Unity Plugin

    e.g., 4.7.0.11800-cf8e24e30

  • Community Edition/Enterprise Edition

  • Platform and CPU architecture

    • iOS

      arm64

    • macOS

      x86_64/arm64

    • visionOS

      arm64