Downgrading Microsoft.iOS version

Phillip Mobley 31 Reputation points
2023-11-09T19:33:37.0633333+00:00

Is there a way to downgrade Microsoft.iOS so that it works with XCode 14.2? I am building my Maui application using MacOS Monterey, and I got an error saying that:

Error: MT0180 - This version of Microsoft.iOS requires iOS 16.4 SDK (Shipped with 14.3) Either upgrade XCode to get the required header files or set the managed linker behavior to link Framework SDKs

Although my target iOS version is 16.2, XCode 14.2 is the only version that can handle it. Here's the link I found:
https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md

I haven't yet tried the managed linker, but I was hoping there was a simple way to downgrade Microsoft.iOS so that it can work with XCode 14.2. However, I'm not sure if the link is for Xamarin.iOS and not Microsoft.iOS.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,502 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 31,561 Reputation points Microsoft Vendor
    2023-11-11T03:23:55.1766667+00:00

    Hello,

    The Microsoft.iOS package is a part of MAUI workload and it's not recommended that you try to downgrade it. The only way is to rollback MAUI workload, you have to create a rollback json file and run the command:

    dotnet workload install maui --from-rollback-json XXX.json
    

    For more details, you can refer to a comment about pin the previous version at GitHub.

    Note: It's recommended that you update Xcode, as there is a high risk of rejection when publishing your iOS app to the App Store using previous Xcode versions.

    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 Answers by the question author, which helps users to know the answer solved the author's problem.