Cross-platform mobile development with C++

You can build native C++ apps for iOS, Android, and Windows devices by using the cross-platform tools available in Visual Studio. Mobile development with C++ is a workload available in the Visual Studio installer. It installs the SDKs and tools you need for cross-platform development of shared libraries and native apps. When it's installed, you can use C++ to create code that runs on iOS and Android devices and platforms, Windows, Windows Store, and Xbox.

Writing code for multiple platforms is often frustrating. The primary development languages and tools for iOS, Android, and Windows are different on each platform. However, all platforms support writing code in C++. It's the common denominator that can enable reuse of core code across platforms. Native code written in C++ can be both more performant and resistant to reverse engineering. Code reuse can save both time and effort when creating apps for multiple platforms.

Development using C++ for cross-platform mobile development has several advantages:

Get the tools

Mobile development with C++ is an installable workload that comes with Visual Studio. For prerequisites and installation instructions, see Install cross-platform mobile development with C++. To build code for iOS, you also need a Mac computer and an Apple iOS Developer Account. For more information, see Install and configure tools to build using iOS.

Come up to speed

If you're coming from Android or iOS development, we have some great material on how to get started. Visual Studio is an expressive and capable development environment. To learn how to use it, try Get started for Android developers or Get started for iOS developers. These articles introduce you to Visual Studio, and to the concepts you'll need to develop cross-platform apps for Windows and Windows Store. To get started writing your first cross-platform app for iOS and Android, see Build an OpenGL ES application on Android and iOS.

The Mobile development with C++ workload includes several templates to help you get started on your apps:

Try out sample code

Download samples that show how to create shared code libraries you can use in Windows, Android, and iOS apps. And, see examples of how to create complete Native Activity apps for Android. To get started, see Cross-platform mobile development examples.