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?

0
7 comments

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?

0

And what is your Rider version (JetBrains Rider > About)?

0

Hi,

dotnet --version = 7.0.100

MSBuild version = Auto detected (16.0)

Rider version = 2022.2.4

 

0

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.

0

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
 

0

To add this is a Xamarin.Mac project that was primarily developed using VS Mac 2019

0

Hey Aurrutia ,

Let's investigate the issue in this thread.

Thank you. 

0

Please sign in to leave a comment.