Error: Xamarin.iOS 14+ does not support watchOS 1 apps. Please migrate your project to watchOS 2+.

炜 黄 21 Reputation points
2022-09-26T09:38:53.167+00:00

In this page:"https://learn.microsoft.com/en-us/xamarin/ios/platform/apple-pay ", i download the Emporium (sample) code.
When i run it, it show error informat:"Xamarin.iOS 14+ does not support watchOS 1 apps. Please migrate your project to watchOS 2+. ".
What should i do now ?
244801-error.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,326 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,381 Reputation points Microsoft Vendor
    2022-09-27T08:59:58.233+00:00

    Hello @炜 黄 ,

    The sample contains an Apple Watch WatchKit extension, watchOS 1 is a little old and it's not supported yet by Apple, see watchOS 1 updates will not be accepted after April 1, 2018.
    If you want to debug the app without the WatchKit extension, you can remove it. Please try to right-click the iOS "Emporium" project, go to Add->Reference->Project, then uncheck the "EmporiumWatchKitExtension".

    If you want to debug on Apple Watch, it's suggested that you can add a new Watch Extension project, and copy the logical code to this new Extension project. But I saw you select the iOS16 simulator, you have updated to Xcode14. I have to say, you can't run the WatchOS Extension currently, there is a known issue reported at DC- Visual For Mac 2022 cannot run Watch OS, you could follow the progress.

    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

0 additional answers

Sort by: Most helpful