{"id":260,"date":"2015-10-22T21:21:11","date_gmt":"2015-10-22T13:21:11","guid":{"rendered":"https:\/\/antijava.prjlife.com\/?p=260"},"modified":"2021-03-16T10:05:02","modified_gmt":"2021-03-16T02:05:02","slug":"add-existed-xcode-project-to-svn-repository","status":"publish","type":"post","link":"https:\/\/antijava.prjlife.com\/?p=260","title":{"rendered":"Add existed XCode project to SVN repository"},"content":{"rendered":"<p>I&#8217;ve been bothered by this issue for a long time.<\/p>\n<p>And finally I&#8217;d decide to find the best practice today to do this job.<\/p>\n<p>Here are the steps:<\/p>\n<p>Step 1.<\/p>\n<p>Create SVN repository, for example, http:\/\/svn.domain.com\/myrepo<\/p>\n<p>Step 2.<\/p>\n<p>Create XCode project, Assume the project path is Documents\/iosprojects\/milkshaker<\/p>\n<p>Step 3.<\/p>\n<p>Open OS X app <span style=\"color: #0000ff;\">Terminal<\/span>\u00a0 which is command line mode.<\/p>\n<p>Step 4.<\/p>\n<p>In terminal, cd to the parent directory of your project directory (Documents\/iosprojects in this example)<\/p>\n<p><span style=\"color: #0000ff;\">cd<\/span> \/Users\/yourname\/Documents\/iosprojects<\/p>\n<p>Step 5.<\/p>\n<p>The most import step, svn import (NOT ADD) as following command<\/p>\n<p><span style=\"color: #0000ff;\">svn import -m &#8220;<\/span>New Import <span style=\"color: #0000ff;\">&#8220;<\/span> milkshaker<span style=\"color: #0000ff;\">\/<\/span> http:\/\/svn.domain.com\/myrepo<\/p>\n<p>The syntax is<\/p>\n<p><span style=\"color: #0000ff;\">svn import -m &#8220;<\/span>&lt;remark message&gt;<span style=\"color: #0000ff;\">&#8220;<\/span> &lt;project directory&gt;<span style=\"color: #0000ff;\">\/<\/span> &lt;SVN URL&gt;<\/p>\n<p>Key in the userid and password and you&#8217;re good to go.<\/p>\n<p>Step 6.<\/p>\n<p>After step 5 was done.<\/p>\n<p>Open XCode app, try <span style=\"color: #0000ff;\">Source control<\/span>-&gt;<span style=\"color: #0000ff;\">Check out<\/span><\/p>\n<p>Key in the SVN URL, userid and password to checkout the project to local directory.<\/p>\n<p>&nbsp;<\/p>\n<p>That would be all I want to share, happy SVNing !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been bothered by this issue for a long time. And finally I&#8217;d decide to find the best practice today to do this job. Here are the steps: Step 1. Create SVN repository, for example, http:\/\/svn.domain.com\/myrepo Step 2. Create XCode &hellip; <a href=\"https:\/\/antijava.prjlife.com\/?p=260\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-260","post","type-post","status-publish","format-standard","hentry","category-ios-development"],"_links":{"self":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=260"}],"version-history":[{"count":0,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=\/wp\/v2\/posts\/260\/revisions"}],"wp:attachment":[{"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antijava.prjlife.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}