Reputation: 1398
How do I add a new project to source control (SVN) using Xcode 5?
In "Source Controller" only checkout is clickable and all other are unclickable.
i have existing copy of my project. And i want to upload this app on SVN. how add existing copy to SVN in XCode 5.
As in image you can see all other options are unclickable. i want to add this project to SVN.
Upvotes: 3
Views: 9493
Reputation: 1234
Use following steps for checkout latest version from SVN server
Upload existing project to SVN server
Upvotes: 6
Reputation: 365
First of all you should close Xcode, locate your project in the Finder, and create a directory hierarchy appropriated for SVN
/projectdir
/projectdir/branches
/projectdir/tags
/projectdir/trunk
Then, you should put your Xcode project directory into trunk
.
Once you've done that, and created your repository on your server using svnadmin create PATH-TO-PROJECTDIR
, you can import your local copy into the newly created repository on the server. Note that svnadmin doesn't create intermediate directories contained in PATH-TO-PROJECTDIR.
Use svn import projectdir svn+ssh://your-server-url/your-repository-path -m "First commit"
.
Now you are able to check out your trunk (with Xcode or svn command) and version control in Xcode will be enabled.
Upvotes: 2