xcode 7 svn提交失败错误

时间:2015-09-29 10:11:20

标签: ios svn xcode7

我从xcode / source control / Commit

收到以下错误

enter image description here

我甚至没有在我的xcode项目中看到该文件。不在这里。

当我尝试通过终端添加无版本文件时 回复如下:

PJs-MacBook-Pro:~ pj$ cd /Users/pj/Desktop/Projects/PGA/WorkingCopies/trunk/CustomerApp/PGAC/
PJs-MacBook-Pro:PGAC pj$ svn add ViewController.h
svn: warning: W155010: '/Users/pj/Desktop/Projects/PGA/WorkingCopies/trunk/CustomerApp/PGAC/ViewController.h' not found
svn: E200009: Could not add all targets because some targets don't exist
svn: E200009: Illegal target for the requested operation

我无法在我的项目中看到文件“ViewController.h”。我该如何添加它?

4 个答案:

答案 0 :(得分:2)

嗯..

我不知道出了什么问题。

但是当我再次尝试导入然后检查回购时。它开始工作了

答案 1 :(得分:1)

另一种解决方法是使用“SVNX”Download Link

它具有所有功能,并且易于使用。

您可以通过youtube check out this link

上的视频获取帮助

答案 2 :(得分:0)

对我有用的解决方案是使用Terminal提交图像文件。首先cdimage.xcassets目录,然后输入svn commit -m "any commit message"

答案 3 :(得分:0)

您需要将根文件夹添加到svn:

PJs-MacBook-Pro:~ pj$ cd /Users/pj/Desktop/Projects/PGA/WorkingCopies/trunk/CustomerApp/
PJs-MacBook-Pro:PGAC pj$ svn add PGAC
PJs-MacBook-Pro:PGAC pj$ cd PGAC
PJs-MacBook-Pro:PGAC pj$ svn add ViewController.h