加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

你会如何避免“Xcode,Subversion错误:155007(路径不是工作副本

发布时间:2020-12-14 17:55:45 所属栏目:百科 来源:网络整理
导读:在对工作副本进行更改后,我无法看到提交选项,但我确保我的svn设置正确无误. 这个错误消息究竟出现了什么问题? Xcode显示: Your path is not a working copy 我该怎么做才能解决这个问题? 解决方法 博客文章“ Xcode,Subversion Error: 155007 (Path is no
在对工作副本进行更改后,我无法看到提交选项,但我确保我的svn设置正确无误.

这个错误消息究竟出现了什么问题?

Xcode显示:

Your path is not a working copy

我该怎么做才能解决这个问题?

解决方法

博客文章“ Xcode,Subversion Error: 155007 (Path is not a working copy directory)”及其评论几乎就是这种错误的参考.

简单的解决方法:

>删除本地副本(cd myxcodeproject; rm -rf.)
>从服务器中删除“build”文件夹
> svn co https:// svnserver / path / trunk / project.

Now you should see .svn folders in every directory of your local project (you don’t see them if you use the “Export” function of the SCM panel from Xcode).
At this point,you should be able to edit and commit your changes directly from Xcode.

现在您需要正确初始化项目.
以下部分说明了该部分:

怎么做对(一般原则)

To place the project under Xcode,you need to first import it.
The SCM->commit entire project… gives error 155007 if you don’t first do this:

Under the SCM menu in Xcode select Repositories,then click the IMPORT icon at the top of that dialog that appears.
Select the project from the list and then click the import button.

Of course you need to first configure at least one repository before doing the steps above.

正确的初始化步骤(详细过程)

  1. Create the project in XCODE.
  2. Setup subversion in XCODE and select the subversion repository for this project.
  3. Use Xcode SCM > Repository and click on the IMPORT icon. This will move the local copy to the subversion repository.
  4. Now delete your local copy (or move it to another location just in case).
  5. Finally CHECKOUT the project from subversion (this will create the subversion .svn folders,…).
  6. Reselect the subversion repository for this project.
  7. Commit the entire project.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读