Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Adding Objective C to an Existing Project

Antoine Haas edited this page Aug 29, 2016 · 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](https://github.com/Microsoft/WinObjC/wiki/images/Adding Objective C to an Existing Project/ProjectBuildDependencies.png)

  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.

Clone this wiki locally