{"id":42753,"date":"2022-10-11T11:48:19","date_gmt":"2022-10-11T18:48:19","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=42753"},"modified":"2022-10-31T10:51:02","modified_gmt":"2022-10-31T17:51:02","slug":"dotnet-maui-xcode-14","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/dotnet-maui-xcode-14\/","title":{"rendered":"Announcing .NET MAUI support for Xcode 14 and iOS 16"},"content":{"rendered":"<p>Today we are shipping .NET 6 and Visual Studio 2022 support for Xcode 14, and our sixth service release for .NET MAUI. Xcode 14 introduces iOS 16, the latest mobile operating system from Apple. The other Apple SDKs in this release are unchanged from the last release. Whether you&#8217;re building apps with UIKit or .NET MAUI, you can can now take advantage of the <a href=\"https:\/\/developer.apple.com\/documentation\/ios-ipados-release-notes\/ios-16-release-notes\">latest SDK features<\/a>. Let&#8217;s take a closer look at building for iOS with .NET.<\/p>\n<blockquote><p>.NET 7 Release Candidate 2 (RC2) with .NET MAUI, iOS, and Xcode 14 support is scheduled to ship in one week. Until then, .NET MAUI 7 RC1 is the latest version.<\/p><\/blockquote>\n<h2>Getting Started<\/h2>\n<p>Install or upgrade to the latest Visual Studio 2022 in order to acquire the .NET 6 workloads for iOS. The specific versions are:<\/p>\n<ul>\n<li>Visual Studio 2022 for Mac &#8211; 17.4 Preview 3 <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/mac\/preview\/\">Download<\/a><\/li>\n<li>Visual Studio 2022 for Windows &#8211; 17.3 or 17.4 Preview 3 <a href=\"https:\/\/visualstudio.microsoft.com\/vs\/\">Download<\/a><\/li>\n<\/ul>\n<p>On your Mac install Xcode 14.0.x from the <a href=\"https:\/\/developer.apple.com\/xcode\/\">Apple Developer website<\/a>. If you install from the Mac App Store, it may auto-update to versions incompatible with .NET, so we recommend directly controlling your installation. Note <a href=\"https:\/\/developer.apple.com\/support\/xcode\/\">Apple&#8217;s minimum requirement<\/a> is macOS Monterey 12.5 which is higher than Xcode 13.4 requires.<\/p>\n<h2>Developing for iOS from Windows<\/h2>\n<p>Visual Studio 2022 offers two ways to develop for iOS from Windows, &#8220;Pair to Mac&#8221; and &#8220;Hot Restart&#8221;. Pair to Mac connects Visual Studio to a Mac on your local network, installs the necessary build tools, and uses that machine to compile and sign the app.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/10\/pair-to-mac.png\" alt=\"Pair to Mac dialog\" \/><\/p>\n<p>For detailed instructions on configuring Pair to Mac follow <a href=\"https:\/\/learn.microsoft.com\/dotnet\/maui\/ios\/pair-to-mac\">this guide<\/a>.<\/p>\n<p>Hot Restart enables you to connect any iOS or iPadOS device to Visual Studio 2022 on Windows and develop directly. This is best suited for day-to-day development of .NET MAUI apps. When you&#8217;re ready to distribute your application and sign it, you can use a build machine on your network or a service such as App Center. Follow <a href=\"https:\/\/learn.microsoft.com\/dotnet\/maui\/deployment\/hot-restart\">the hot restart documentation steps<\/a> from Windows to get started.<\/p>\n<p><div style=\"width: 1920px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-42753-1\" width=\"1920\" height=\"1032\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/10\/HotRestart.mp4?_=1\" \/><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/10\/HotRestart.mp4\">https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2022\/10\/HotRestart.mp4<\/a><\/video><\/div><\/p>\n<h2>Developing for iOS from Mac<\/h2>\n<p>This option is straight forward: install the Visual Studio 2022 preview for Mac and Xcode 14. If you are managing multiple versions of Xcode for any reason, take a look at <a href=\"https:\/\/github.com\/RobotsAndPencils\/xcodes\">xcodes<\/a>, a popular app for acquiring and switching between versions.<\/p>\n<p>If you have any feedback we&#8217;d love to hear from you! Please send us details by using the <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">Send Feedback<\/a> button in Visual Studio.<\/p>\n<p><strong>Resources:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/xamarin\/xamarin-macios\/releases\/tag\/dotnet-6.0.4xx-xcode14-517\">iOS Release Notes<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/dotnet\/maui\/releases\/tag\/6.0.541\">.NET MAUI Release Notes<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/maui\/ios\/pair-to-mac\">Pair to Mac<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/dotnet\/maui\/deployment\/hot-restart\">iOS Hot Restart<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>.NET MAUI now supports Xcode 14 and iOS 16<\/p>\n","protected":false},"author":553,"featured_media":42754,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,7233],"tags":[],"class_list":["post-42753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-maui"],"acf":[],"blog_post_summary":"<p>.NET MAUI now supports Xcode 14 and iOS 16<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/42753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/553"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=42753"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/42753\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/42754"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=42753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=42753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=42753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}