October 11th, 2022

Announcing .NET MAUI support for Xcode 14 and iOS 16

David Ortinau
Principal Product Manager

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’re building apps with UIKit or .NET MAUI, you can can now take advantage of the latest SDK features. Let’s take a closer look at building for iOS with .NET.

.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.

Getting Started

Install or upgrade to the latest Visual Studio 2022 in order to acquire the .NET 6 workloads for iOS. The specific versions are:

  • Visual Studio 2022 for Mac – 17.4 Preview 3 Download
  • Visual Studio 2022 for Windows – 17.3 or 17.4 Preview 3 Download

On your Mac install Xcode 14.0.x from the Apple Developer website. 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 Apple’s minimum requirement is macOS Monterey 12.5 which is higher than Xcode 13.4 requires.

Developing for iOS from Windows

Visual Studio 2022 offers two ways to develop for iOS from Windows, “Pair to Mac” and “Hot Restart”. 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.

Pair to Mac dialog

For detailed instructions on configuring Pair to Mac follow this guide.

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’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 the hot restart documentation steps from Windows to get started.

Developing for iOS from Mac

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 xcodes, a popular app for acquiring and switching between versions.

If you have any feedback we’d love to hear from you! Please send us details by using the Send Feedback button in Visual Studio.

Resources:

Author

David Ortinau
Principal Product Manager

David is a Principal Product Manager for .NET at Microsoft, focused on .NET MAUI. A .NET developer since 2002, and versed in a range of programming languages, David has developed web, environmental, and mobile experiences for a wide variety of industries. After several successes with tech startups and running his own software company, David joined Microsoft to follow his passion: crafting tools that help developers create better app experiences. When not at a computer or with his family, David ...

More about author

7 comments

Discussion is closed. Login to edit/delete existing comments.

  • Sven Norlin

    Do I need xcode 14 on my mac to be able to build a MAUI app? or can I use an older xcode version?

  • toni@codessentials.de

    Does the final bits (or any short coming update) support XCode 14.1?

  • Jaden Rogers

    Was waiting for this, works a treat. Thanks

  • Denis Gudiel

    hello friend I have mac os 12.5, xcode 13.3 installed but I can't connect remotely with my windwos computer it gives me this error "The Xcode license status couldn't be verified because Xcode has not been found on the default location of the connected Mac. Having Xcode installed and functional is necessary in order to build and run iOS apps, so please check that Xcode is correctly installed and that the path specified under iOS...

    Read more
  • é¾™ 王

    In the process of active learning, MAUI is doing well

  • suhe 0919

    MAUI When to offer VideoPlayer?