how to add iPhone and iPhone Simulator tag in for xamarin project ?

Srihari Kowdeed 0 Reputation points
2024-01-08T09:38:00.1433333+00:00

I am migrating from xamarin and I am not able to add iPhone and iPhoneSimulator as target platform for the project . How can I do that ? can anyone please help me out with it .

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,451 Reputation points Microsoft External Staff
    2024-01-09T09:08:00.0633333+00:00

    Hello,

    You mean iOS Build Mechanics with Xamarin and setting the build configurations, right?

    You could try to add different configurations in the .csproj file. For example:

    <Configurations>Debug;Release;Simulator</Configurations>
    
    <Platforms>AnyCPU;ARM64</Platforms>
    

    Also, you could convert the MtouchArch and XamMacArch properties to the RuntimeIdentifier property. For more details, please refer to Xamarin.iOS project migration - .NET MAUI | Microsoft Learn

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.