{"id":14375,"date":"2017-04-14T17:57:18","date_gmt":"2017-04-15T01:57:18","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/?p=14375"},"modified":"2019-02-18T17:48:35","modified_gmt":"2019-02-18T17:48:35","slug":"migrate-your-existing-ios-xcode-projects-to-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/migrate-your-existing-ios-xcode-projects-to-visual-studio\/","title":{"rendered":"Migrate your existing iOS XCode projects to Visual Studio"},"content":{"rendered":"<p>If you\u2019re targeting iOS and writing a lot of C++ code, you should consider importing your XCode projects inside Visual Studio. Visual Studio not only provides an easy way to import these projects, but also allows opening these projects back in XCode if you need to make non-C++ related edits (e.g. storyboarding, UI design).<\/p>\n<p>This article covers the high-level steps needed to import your existing iOS XCode projects into Visual Studio. <span>You can read about other C++ project types in the guide for <\/span><a href=\"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2017\/04\/14\/bring-your-cpp-code-to-visual-studio\/\">Bringing your C++ code to Visual Studio<\/a><span>.<\/span><\/p>\n<p><strong>Step 1. Install iOS support:<\/strong> Make sure that during VS installation, you select the \u201c<strong>Mobile development with C++<\/strong>\u201d workload. In the customization pane, make sure you select the \u201c<strong>C++ iOS development tools<\/strong>\u201d option as well.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/bringcode-ios-install.png\" alt=\"bringcode-ios-install\" width=\"450\" height=\"92\" class=\"alignnone size-full wp-image-14476\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/bringcode-ios-install-options.png\" alt=\"bringcode-ios-install-options\" width=\"268\" height=\"424\" class=\"alignnone size-full wp-image-14485\" \/><\/p>\n<p><strong>Step 2. Install the remote Mac tools and connect from VS:<\/strong> Install vcremote on the Mac machine following the instructions in \u201c<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt147405.aspx\">Install and Configure Tools to Build iOS projects<\/a>\u201d. Then, in VS, from <strong>Tools<\/strong> &gt; <strong>Options<\/strong> &gt; <strong>Cross Platform<\/strong> &gt; <strong>C++<\/strong> &gt;<strong> iOS<\/strong>, pair VS with your Mac machine<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/bringcode-ios-options.png\" alt=\"bringcode-ios-options\" width=\"650\" height=\"418\" class=\"alignnone size-full wp-image-14495\" \/><\/p>\n<p><strong>Step 3. Launch the XCode import wizard<\/strong>. Go to <strong>File<\/strong> &gt; <strong>New<\/strong> &gt; <strong>Import<\/strong> &gt; <strong>Import from XCode<\/strong> and follow the steps of the wizard. To learn more about the wizard, read <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt735163.aspx\">\u201cImport a XCode project\u201d in MSDN<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/bringcode-ios-import.png\" alt=\"bringcode-ios-import\" width=\"800\" height=\"550\" class=\"alignnone size-full wp-image-14475\" \/><\/p>\n<p>Each XCode target will create a new Visual Studio project and your iOS source code will be available for further editing, building and debugging.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/bringcode-ios-debug.png\" alt=\"bringcode-ios-debug\" width=\"931\" height=\"658\" class=\"alignnone size-full wp-image-14465\" \/><\/p>\n<p><strong>Step 4 (optional). Open Visual Studio project in XCode:<\/strong> When you need to make non-C++ changes to your iOS projects (e.g. storyboard editing), Visual Studio can automatically open your projects inside XCode running on your Mac. Once you\u2019re done making changes, you can ask VS to copy these changes back to the Windows machine. Follow this link to learn more about <a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/mt748656.aspx\">syncing changes between XCode and Visual Studio<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/9\/2019\/02\/bringcode-ios-xcode.png\" alt=\"bringcode-ios-xcode\" width=\"663\" height=\"479\" class=\"alignnone size-full wp-image-14505\" \/><\/p>\n<h3>What\u2019s next<\/h3>\n<p>To learn more about the iOS support in Visual Studio read \u201c<a href=\"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2015\/06\/04\/developing-cross-platform-ios-applications-using-visual-studio\/\">Developing cross-platform iOS applications using Visual Studio<\/a>\u201d.<\/p>\n<p><span>If you\u2019re new to Visual Studio, learn more by reading the <a href=\"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2017\/04\/21\/getting-started-with-visual-studio-for-c-and-cpp-development\/\">Getting Started with Visual Studio for C and C++ Developers<\/a> topic and the rest of the posts in this <a href=\"https:\/\/blogs.msdn.microsoft.com\/vcblog\/category\/new-user\/\">Getting Started series aimed at C++ users that are new to Visual Studio<\/a><span>. <\/span><a href=\"https:\/\/aka.ms\/vs2017cpp\">Download Visual Studio 2017<\/a><span> today, try it out and <\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio-2017\">share your feedback<\/a><span>.<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019re targeting iOS and writing a lot of C++ code, you should consider importing your XCode projects inside Visual Studio. Visual Studio not only provides an easy way to import these projects, but also allows opening these projects back in XCode if you need to make non-C++ related edits (e.g. storyboarding, UI design). This [&hellip;]<\/p>\n","protected":false},"author":308,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14375","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus"],"acf":[],"blog_post_summary":"<p>If you\u2019re targeting iOS and writing a lot of C++ code, you should consider importing your XCode projects inside Visual Studio. Visual Studio not only provides an easy way to import these projects, but also allows opening these projects back in XCode if you need to make non-C++ related edits (e.g. storyboarding, UI design). This [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/14375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/308"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=14375"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/14375\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=14375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=14375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=14375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}