News

Visual Studio Preview Automates Mac Provisioning for Xamarin Mobile Development

The just-released second Visual Studio 2017 15.6 preview continues to ease the previously cumbersome experience of hooking up to Mac machines for iOS development using Xamarin.

While Microsoft has shipped the Visual Studio for Mac IDE, it also has steadily been trying to improve the iOS/Xamarin development process in Visual Studio on Windows with tools such as Xamarin Live Player. It lets coders continuously deploy, test and debug apps using just Visual Studio and an iOS or Android device.

For example, at a recent Visual Studio Live! conference, Microsoft's Matthew Soucoup demonstrated pairing his Visual Studio project to an iPhone for live debugging. This prompted several audience questions about whether a Mac really was required for iOS development.

The ultimate answer was "Yes." It's still required when it comes time for App Store deployment.

"You always will need a Mac," Soucoup told the audience. "Will it get better? I would hope so." The senior cloud developer advocate said he hopes the workflow and tools will eventually reach a point where everything can be done on a Windows machine.

That point isn't here yet, but the process is getting easier.

In the second 15.6 preview, Microsoft has automated the Mac provisioning process. "Rather than manually maintaining a Mac build machine, all you need to do is connect to the Mac, and we’ll handle the heavy lifting of installing and configuring your build machine with the correct Xamarin.iOS and Mono bits, all from Visual Studio," Microsoft's Pierce Boggan said in a Xamarin blog post Wednesday.

Another iOS-centric enhancement related to Xamarin Live Player allows for live XAML previewing with the built-in iOS Simulator.

Visual Studio 2017 15.5 -- which shipped last month -- provided the ability to preview real-time XAML changes directly in the Android emulator with no recompile or redeploy. Now, in the second 15.6 preview, that functionality has been added to the Remoted iOS Simulator for Windows, which lets developers test and debug iOS apps entirely from the Visual Studio IDE on Windows.

That Remoted iOS Simulator now comes with all editions of Visual Studio (as of version 15.5), even the free Community Edition.

Furthermore, iOS developers will welcome the capability to deploy their iOS apps over the network via WiFi, obviating the need for more pesky cables. Coders need only set up a wireless device in the Xcode IDE on a Mac, after which it will appear in Visual Studio like any other deployment target.

Other improvements noted by Boggan include:

  • Support for the CoreML framework introduced with iOS 11, letting iOS apps can take advantage of trained machine learning models to work with the CoreML framework
  • Xamarin.iOS 11.8
  • Xamarin.Android 8.1
  • Enhancements to design-time build performance for Android developers (affecting solution load and providing metadata for IntelliSense, among other things)
  • Static analysis for Xamarin.iOS projects

Developers can try out all of the above via the Visual Studio Preview installer, which allows for putting the previews through their paces alongside other VS installations without affecting current setups.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events