How do we build and test Release versions for iOS in Maui now that Visual Studio for Mac is dead? #23492
-
To build to iOS in Debug mode, one can attach an iPhone by USB to a Windows computer and in Debug mode select the iPhone. This works easily enough. But how are we supposed to build to iOS in Release mode? I see Visual Studio has been discontinued for Macs: https://devblogs.microsoft.com/visualstudio/visual-studio-for-mac-retirement-announcement/ IdeasI found this page that suggests two methods:
Are both of these still working? I presume "Pair to Mac" is how most people are doing it then? So you don't have to clone the project over to the Mac? Pair to Mac?The page on "Pair To Mac" says:
So since we don't have Visual Studio 2022 for Mac anymore, does this work by installing Mono & XCode still? Is this the correct working method still? Copy to iPhone and Run?If you do succeed in the above, how do you then copy the build to an iPhone and run it, since iOS doesn't allow "sideloading"? Thanks for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Pair to Mac with Mono/Xcode is the workflow I've been using for several years now for debug and Release modes. I can also confirm that it is working in .NET 8 after just recently migrating from .NET 7. The process facilitates automatic deployment to the phone and should run after finishing with the app build still being present on the device until modified/removed manually. FWIW, I only push to the App Store via the organizer in Xcode, I haven't tried the manual packaging process. EDIT: I didn't realize you could push debug builds to the iOS device connected via USB to the windows PC. I've always had it connected to the Mac, may be why I've never seen an issue between the two modes. |
Beta Was this translation helpful? Give feedback.
-
It is possible now to develop iOS directly on Mac using CAVEAT: I haven't tested MAUI this way; I've been doing that by connecting from VS 2022 on Windows. (I have my iPad connected to my mac.) |
Beta Was this translation helpful? Give feedback.
-
One easy solution is to use Azure pipeline and build your app. Then you will have good control of all different version for MAUI, Dotnet, Workload, Xcode and more. Below is sample of maui pipeline resources: trigger: none
|
Beta Was this translation helpful? Give feedback.
Pair to Mac with Mono/Xcode is the workflow I've been using for several years now for debug and Release modes. I can also confirm that it is working in .NET 8 after just recently migrating from .NET 7. The process facilitates automatic deployment to the phone and should run after finishing with the app build still being present on the device until modified/removed manually.
FWIW, I only push to the App Store via the organizer in Xcode, I haven't tried the manual packaging process.
EDIT: I didn't realize you could push debug builds to the iOS device connected via USB to the windows PC. I've always had it connected to the Mac, may be why I've never seen an issue between the two modes.