Cannot run or debug app on Mac
Hi, we've been developing a solution using Visual Studio for Mac but we've been having difficulties when debugging. So I decided to try Rider to see if it was any better. However when I open the solution in Rider it builds fine but when I run or debug it the app it immediately fails with a DllNotFoundException saying it can't find "libxammac.dylib"
If I run the built app from Finder it works and starts up correctly so it doesn't seem to be a build problem.
Any ideas about how to get it to run?
Please sign in to leave a comment.
Hi,
What is the result of "dotnet --version" command in terminal and what is set in `Preferences | Build, Execution, Deployment | Toolset and Build` -> MSBuild version?
And what is your Rider version (JetBrains Rider > About)?
Hi,
dotnet --version = 7.0.100
MSBuild version = Auto detected (16.0)
Rider version = 2022.2.4
Please try upgrading Rider to 2022.3 and be sure that MSBuild from dotnet 7 is selected in `Preferences | Build, Execution, Deployment | Toolset and Build` -> MSBuild version.
If this issue stays, please create a support request (https://rider-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=97145) and attach the following information:
1. the full log bundle (Help | Collect Logs)
2. the full text of error you see in Rider
3. your csproj file
4. a screenshot of `Preferences | Build, Execution, Deployment | Toolset and Build` -> MSBuild version.
Thank you in advance.
Sofia Byzova Are there any follow ups to this? I am seeing this same issue but unable to find anything relatable to this.
My Xamarin.Mac project Cleans/Builds successfully in the Rider IDE and I am able to successfully run the application outside of the IDE. However, when I try to run it and debug in the IDE I get FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: Could not find the runtime library libxammac.dylib at runtime
To add this is a Xamarin.Mac project that was primarily developed using VS Mac 2019
Hey Aurrutia ,
Let's investigate the issue in this thread.
Thank you.