Skip to main content

Troubleshooting

This guide helps you troubleshoot issues in Nitro and should give you enough context to open a well-formed issue, even if you're not a native developer.

Minimum requirements

First, make sure you meet the minimum requirements for Nitro.

Ask for help

If you want to ask for help, join our Margelo Community Discord.

Build error

If your app fails to build after installing Nitro or a library powered by Nitro, make sure to post full build logs:

  1. Build the app with Xcode.

  2. When the build fails in Xcode, open the "Report Navigator" tab from within the left sidebar:

    Report Navigator tab in Xcode
  3. Then, find the most recent build attempt and click on "Build":

    Last build report in Xcode
  4. Scroll through the build report and find the step(s) that failed to build. They usually have a ❌ icon on the left. Click on the parent item's hamburger menu on the right to open the full logs:

    Error line in the build report
  5. Scroll down through the build logs (the long part is just the command invocation) to find the actual error messages:

    Bottom of error logs
  6. Copy those bottom logs only (not the build command invocation above) and create a GitHub issue with that.

Runtime error

If your app crashes at runtime, make sure to inspect the native logs.

  1. Run your app through Xcode

  2. If the app hits an unhandled error, it should pause in Xcode. Share the line it stopped in, and also the call-stack (stacktrace) on the left side.

  3. If the app didn't pause, then it might have been a handled error - in this case just check the Xcode logs at the bottom:

    Bottom of runtime logs