I have a MAUI application that I can run in any simulator I want in VS for Mac but I want to run the app in a simulator via the .NET command line. So I am running this command:
dotnet build -t:Run -f net7.0-ios /p:RuntimeIdentifier=iossimulator-x64 /p:DeviceName="iPhone 14 Pro Max"
This does build and run the app but it always builds in an 6th gen iPad Pro simulator regardless of what device I try to target. I can not find any reference to that specific iPad model anywhere in the csproj file or anywhere else. Does my command look valid? Why else might it always boot in 6th gen Ipad Pro?
If you need any further information please ask.