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:
- iOS
- Android
-
Build the app with Xcode.
-
When the build fails in Xcode, open the "Report Navigator" tab from within the left sidebar:
-
Then, find the most recent build attempt and click on "Build":
-
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:
-
Scroll down through the build logs (the long part is just the command invocation) to find the actual error messages:
-
Copy those bottom logs only (not the build command invocation above) and create a GitHub issue with that.
-
Build the app with Android Studio.
-
When the build fails in Android Studio, open the "Build" tab from within the bottom left sidebar:
-
Find the top-most entry in the Build window (which contains full unfiltered logs) and click it:
-
Copy those full logs and paste them in the GitHub issue (or serve via pastebin). Make sure they actually contain the error message and not just something like "BUILD FAILED in 7s" (which is what most people post):
Runtime error
If your app crashes at runtime, make sure to inspect the native logs.
- iOS
- Android
-
Run your app through Xcode
-
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.
-
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:
-
Run your app through Android Studio by using the Debug button (🪲)
-
If the app hits an unhandled error, it should pause in Android Studio. Share the line it stopped in, and also the call-stack (stacktrace) on the bottom window.
-
If the app didn't pause, then it might have been a handled error - in this case just check the Android Logcat logs at the bottom: