How do I add a new project to source control (SVN) using Xcode 5?
如何使用Xcode 5向源代码管理(SVN)添加新项目?
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.
我有我项目的现有副本。我想把这个应用上传到SVN。如何将现有副本添加到XCode 5中的SVN。
As in image you can see all other options are unclickable. i want to add this project to SVN.
在图片中,你可以看到所有其他选项都是不可点击的。我想把这个项目添加到SVN。
2 个解决方案
#1
6
Use following steps for checkout latest version from SVN server
使用以下步骤从SVN服务器签出最新版本
- Xcode click on checkout button (Source Control -> checkout)
- Xcode点击checkout按钮(源代码控制->)
- Enter your repository location and click next
- 输入存储库位置并单击next。
- Select project from project list (Stored on svn server)
- 从项目列表中选择项目(存储在svn服务器上)
- Select location where you want to store project and press checkout
- 选择要存储项目的位置并按checkout
Upload existing project to SVN server
将现有项目上传到SVN服务器
- Open terminal and move to your project path
- 打开终端,移动到项目路径
- cd 'Your project path'
- cd的项目路径
- In following comment add server path and execute it
- 在下面的注释中添加服务器路径并执行它。
- svn import 'Your Project Path' 'Server path' "Initial Import”
- svn导入“您的项目路径”“服务器路径”“初始导入”
#2
2
First of all you should close Xcode, locate your project in the Finder, and create a directory hierarchy appropriated for SVN
首先,您应该关闭Xcode,在Finder中定位项目,并为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.
然后,应该将Xcode项目目录放到trunk中。一旦您这样做了,并使用svnadmin创建路径到项目目录在服务器上创建了存储库,您就可以将本地副本导入服务器上新创建的存储库。请注意,svnadmin不创建路径到projectdir中包含的中间目录。使用svn import projectdir svn+ssh://您的-server-url/您的-repository-path -m“First commit”。现在您可以检查主干(使用Xcode或svn命令),并启用Xcode中的版本控制。
#1
6
Use following steps for checkout latest version from SVN server
使用以下步骤从SVN服务器签出最新版本
- Xcode click on checkout button (Source Control -> checkout)
- Xcode点击checkout按钮(源代码控制->)
- Enter your repository location and click next
- 输入存储库位置并单击next。
- Select project from project list (Stored on svn server)
- 从项目列表中选择项目(存储在svn服务器上)
- Select location where you want to store project and press checkout
- 选择要存储项目的位置并按checkout
Upload existing project to SVN server
将现有项目上传到SVN服务器
- Open terminal and move to your project path
- 打开终端,移动到项目路径
- cd 'Your project path'
- cd的项目路径
- In following comment add server path and execute it
- 在下面的注释中添加服务器路径并执行它。
- svn import 'Your Project Path' 'Server path' "Initial Import”
- svn导入“您的项目路径”“服务器路径”“初始导入”
#2
2
First of all you should close Xcode, locate your project in the Finder, and create a directory hierarchy appropriated for SVN
首先,您应该关闭Xcode,在Finder中定位项目,并为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.
然后,应该将Xcode项目目录放到trunk中。一旦您这样做了,并使用svnadmin创建路径到项目目录在服务器上创建了存储库,您就可以将本地副本导入服务器上新创建的存储库。请注意,svnadmin不创建路径到projectdir中包含的中间目录。使用svn import projectdir svn+ssh://您的-server-url/您的-repository-path -m“First commit”。现在您可以检查主干(使用Xcode或svn命令),并启用Xcode中的版本控制。