NET8 MAUI app on iOS or macCatalyst: Unable to create package spec for project

582 Views Asked by At

I'm creating an app with MAUI and NET8. From my Windows laptop, I can't run the application via a iOS Simulator because it can't find a compatible device. Plus, I get this error

A bundle identifier is required. Either add an 'ApplicationId' property in the project file, or add a 'CFBundleIdentifier' entry in the project's Info.plist file.

but if I open the Info.plist

enter image description here

If I try to run the same application on my iMAC with Visual Studio for Mac, I get this error

Getting restore information for project /Users/enrico/Projects/LIUApp/LanguageInUse/LanguageInUse.csproj

/usr/local/share/dotnet/sdk/7.0.310/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5) : error NETSDK1139: The target platform identifier ios was not recognized.

Unable to create package spec for project. '/Users/enrico/Projects/LIUApp/LanguageInUse/LanguageInUse.csproj'

When I open the project, Visual Studio for Mac is installing the workload but definetely it is not working at the end.

How can I try my application in a iOS Simulator?

Update

This is the screenshot in Visual Studio for Mac

enter image description here

enter image description here

0

There are 0 best solutions below