Need help setting up VS on Mac

you have to target dotnet 6
check that your project targets dotnet6 because monogame does not work on dotnet 7
I’ve had this problem before if I remember correctly it was because of it.
go to the manually uninstall section
change the desired sdk version
change sdkversion to your version

1-cd /usr/local/share/dotnet/sdk/
sudo rm -rf /usr/local/share/dotnet/sdk/$sdkVersion
2- /usr/local/share/dotnet/sdk-manifests
sudo rm -rf /usr/local/share/dotnet/sdk-manifests/$sdkVersion

I found out that the MonoGame templates are displayed in VS for Mac under Other–>Custom and I use Target NET Runtime: .NET 6.0 in the project’s properties.
I have not changed the sdk version:

go to the manually uninstall section
change the desired sdk version
change sdkversion to your version

Is it still necessary to do these steps even if I can run my iOS and Android projects on a real device?
The iPhone simulator is still not working. I have the same problem in VS for Mac 17.5 Preview.

if you don’t see the target ios
try to close the project and quit vs mac 2022
then restart try this operation 1 or 2 times I encounter this bug

it’s up to you if you want to debug on real devices or not

The iPhone simulator works now.
I used this code in the macOS Terminal:

sudo xcode-select -s /Applications/Xcode.app
sudo xcodebuild -license

And after that I installed .NET 6.0 and .NET 7.0 in VS for Mac 2022 17.5 Preview.

2 Likes