Check your project file that the compile conditions are correct for each platform folder. See
Deploying MAUI Android but getting iOS errors!
Pat Long
36
Reputation points
I am porting a project from XF to MAUI. I am trying to build a Signle Project Class Library that has TargetFrameworks of
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks>
I have Android and iOS specific files under Platforms\Android and Platforms\iOS.
I have an Android device attached and succesfully selected in VS2022.
I have multiple "Solution Configurations" ported over from XF solution. Currently selected "Debug"
I have "Any CPU" selected in "£Solution Platforms" drop down.
Why oh why is VS2022 complainig that it cannot build files in the iOS folder. I am not currently trying to build for iOS!!!