-
Notifications
You must be signed in to change notification settings - Fork 554
Diagnosis
The preferred way to provide a build log, is to get a binary build log.
For a Xamarin.iOS or a Xamarin.Mac project, build the project (or solution) with msbuild, and pass the /bl argument:
msbuild myproject.csproj /bl:msbuild.binlog
For a .NET project, build using dotnet build instead, but the arguments are just the same:
dotnet build myproject.csproj /bl:msbuild.binlog
This will produce a msbuild.binlog file we can use to diagnose build problems.
Note that GitHub doesn't allow uploading *.binlog files directly, so they
will have to be zipped first (don't just change the extension) before they're
uploaded to issues.
- Install the Project System Tools for Visual Studio for Mac extension (the installation instructions are at the very bottom of the page).
- Open the
Build Loggingpad. - Start recording by clicking the play button in the
Build Loggingpad. - Build the project.
- Right-click the build log in the
Build Loggingpad, selectOpen Binary Log File. This will open the binary log in Visual Studio for Mac, and the path to the binary log will be at the very top (a temporary path, `/var/folders/...).
- Install the Project System Tools extension.
- Follow the instructions to save a
*.binlogto disk.
If you want to have a look at the binary build log yourself, you can do so here: https://live.msbuildlog.com/
If it's not possible to get a binary build log, a diagnostic (text) build log could also be provided.
- Add
-v -v -v -vto the additional mtouch arguments in the project's iOS Build options. - Set the log verbosity to diagnostic in
Preferences > Projects > Build. - Build the project.
- Select all the output in the
Build Outputpad, and save it to disk. - Upload the build log as a file (do not paste the text into an issue).
- Add
-v -v -v -vto the additional mtouch arguments in the project's iOS Build options (found by right-clicking the project in the solution explorer and selectingProperties) - Set the log verbosity to diagnostic in
Tools > Options > Projects and Solutions > Build and Run. - Build the project.
- Select all the output in the
Build Outputpad, and save it to disk. - Upload the build log as a file (do not paste the text into an issue).
Crash reports for macOS, Mac Catalyst and apps in the simulator can be found in the ~/Library/Logs/DiagnosticReports directory.
Crash reports for devices (iOS, tvOS, watchOS), can be downloaded from Xcode.
Open the menu Window -> Devices and Simulators, select the device on the left, and click on View Device Logs:

Then Xcode will download crash reports from that device (this may take a few seconds) and list them all.
How to get version information
Open menu Visual Studio -> About Visual Studio > Show Details [button] > Copy Information [button].

Open menu Help > About Microsoft Visual Studio > Copy Info [button].