Skip to content

Adding Objective C to an Existing Project

Meredith Monticello edited this page Mar 16, 2017 · 4 revisions

Add Objective-C support to a new (or existing) Visual Studio project

Rather than importing an existing Xcode project, you can choose to instead add Objective-C functionality to a new or existing VS project using the following process:

  1. Open a new or existing UWP app project in Visual Studio.

  2. Within the Visual Studio solution, right-click on the project.

  3. Select Build Dependencies > Build Customizations….

    ProjectBuildDependencies

  4. Select Find Existing.

  5. Navigate to the directory where you extracted the SDK.

  6. Navigate into the msvc directory.

  7. Select the file starboard.targets.

  8. Ensure starboard.targets has a check box next to it in the "Build Customizations..." dialog.

That's it! You can now create .m and .mm files within a UWP app project.

NOTE: You can only add Objective-C functionality to Visual C++ (Universal Windows) projects. The ‘Build Dependencies’ menu option will not appear for Visual C# (Universal Windows) projects.