C
C#13mo ago
MA

❔ Run MaUI .NET 6 Mac Catalyst from Rider

Hello, I created a MaUI app on Visual Studio for mac and would like to switch to Rider (RD-232.10203.29). My goal is to execute the app using the Mac Catalyst target, however, I can't make it running on Rider. It's working like a charm on Visual Studio (see configuration attached) when the debug configuration is used, but get the following error on the default Rider's Mac Catalyst configuration (see attachment) :
0>Xamarin.Shared.targets(870,3): Error : /usr/bin/xcrun exited with code 1

0>Xamarin.Shared.targets(870,3): Error : actool exited with code 1

0>Assets.xcassets: Error actool: The operation couldn’t be completed. Failed to locate any simulator runtime matching options: {
BuildVersionString = 21A326;
Platforms = (
"com.apple.platform.iphonesimulator"
);
VersionString = "17.0";
}
0>Xamarin.Shared.targets(870,3): Error : /usr/bin/xcrun exited with code 1

0>Xamarin.Shared.targets(870,3): Error : actool exited with code 1

0>Assets.xcassets: Error actool: The operation couldn’t be completed. Failed to locate any simulator runtime matching options: {
BuildVersionString = 21A326;
Platforms = (
"com.apple.platform.iphonesimulator"
);
VersionString = "17.0";
}
Yes, it looks like its trying to run on an iOS emulator. But why ? Did a few things to try and fix the issue : - Removing net6.0-ios; from the .csproj TargetFrameworks property. It worked, but not a big fan of that solution. I might need to run it on iOS - Modifying the ".NET Launch Settings Profile" configuration (again, see configuration attached) but in vain, as it forces user to select a launch profile (see attachments in the next message). Here is my project's launchSettings.json :
{
"profiles": {
"Windows Machine": {
"commandName": "Executable",
"nativeDebugging": false
}
}
}
{
"profiles": {
"Windows Machine": {
"commandName": "Executable",
"nativeDebugging": false
}
}
}
I guess having a "Windows Machine" profile there does not apply in my case ? - Running the project thanks to the following command : dotnet run --framework net6.0-maccatalyst. It's working, but not handy at all while developing. - Trying to see what's under the Visual Studio configuration's hood, but could not find anything. Does anybody experienced the same issue or could be of any help ? Thanks a lot in advance ! ❤️
Default Rider's Mac Catalyst configuration
Default Visual Studio's configuration
2 Replies
MA
MAOP13mo ago
Here is the Rider's launch profile configuration. Needs to mention that MacCatalyst is a profile I manually created then deleted as it did not work
No description
Accord
Accord13mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server