Xcode 给我“阻碍”警告,因为我不再使用 SVN,改用 Perforce
我的第一篇文章希望我对我的问题足够清楚。
大约一年前,我在 Xcode 3.xy(iOS 项目)中开始了一个新项目,一切都很顺利,但我想使用某种源代码控制。我在网站上听说过 SVN,所以我尝试了一下并将存储库放在 USB 外部硬盘上。一切都很顺利,然后我决定切换到 Perforce,因为项目中的其他人已经习惯了它。完成此操作后,我格式化了 USB 硬盘以将其用于其他目的。
快进到上周:我安装了 Xcode 4.x,并且在构建时收到各种警告。我得到的 2 个是:
游戏名称.app.dSYM 阻碍 文件://localhost/projects/game_name/build/Release-iphonesimulator/game_name.app.dSYM/: 警告:阻碍:/projects/game_name/build/Release-iphonesimulator/game_name.app.dSYM 正在版本控制下阻止项目
,并且
fx_swish_01.wav 丢失文件 /projects/game_name/fx_swish_01.wav file://localhost/projects/game_name/fx_swish_01.wav:警告:工作副本中缺少文件:/projects/game_name/fx_swish_01.wav
这些是 2 个错误,但我总共有 113 个错误(大约 10 个阻碍,以及 100 名失踪者)。我假设这是因为该项目仍然认为我在 SCM 中使用 SVN,而事实上我只使用来自 Xcode 外部的 perforce。
有人知道我需要做什么吗?我不在乎文件是否被破坏、忽略、删除,等等……我拥有我认为我需要的一切。提前致谢。
编辑: 我通过执行以下操作收到了一些“工作副本丢失”警告:svn delete --force。这以后会咬我吗?我无法提交,但它确实删除了警告。这是我所做的副本:
$ svn delete fx_swish_01.wav
svn: Use --force to override this restriction
svn: 'fx_swish_01.wav' has local modifications
$ svn delete fx_swish_01.wav --force
D fx_swish_01.wav
$ svn commit -m "deleted fx_swish_01.wav"
svn: Commit failed (details follow):
svn: Directory '/projects/game_name/build/Release-iphonesimulator/game_name.app.dSYM/.svn' containing working copy admin area is missing
$ svn delete fx_swish_02.wav
D fx_swish_02.wav
$ svn delete fx_swish_03.wav
D fx_swish_03.wav
$ svn delete fx_swish_04.wav
D fx_swish_04.wav
$ svn delete hey_what_a_crowd.mp3
D hey_what_a_crowd.mp3
$ cd build/Release-iphonesimulator/
$ ls
game_name.app game_name.app.dSYM game_name.app_old.dSYM
$ svn delete game_name.app.dSYM
svn: Directory 'game_name.app.dSYM/.svn' containing working copy admin area is missing
$ svn delete game_name.app.dSYM --force
D game_name.app.dSYM
svn: Directory 'game_name.app.dSYM/.svn' containing working copy admin area is missing
如您所见,我删除了 .wav 文件,它似乎不再给我这些警告。但 game_name.app.dSYM Thin 仍然无法工作...管理区域丢失?我确信该文件曾经存在过,但现在肯定不存在了。
my first post so hopefully I am clear enough with my problem.
I started a new project about a year ago in Xcode 3.x.y (iOS project), everything was going well, but I wanted to use some sort of source control. I had heard about SVN on a website so I gave it a shot and put the repositories on a USB external hard drive. Everything was going great, then I decided to switch to Perforce because other people on the project were used to it. After doing that I formatted the usb hard drive to use it for other purposes.
Fast forward to last week: I installed Xcode 4.x, and I am getting all kinds of warnings when I build. The 2 I am getting are:
game_name.app.dSYM
Obstructing
file://localhost/projects/game_name/build/Release-iphonesimulator/game_name.app.dSYM/:
warning: Obstructing: /projects/game_name/build/Release-iphonesimulator/game_name.app.dSYM is blocking item under version control
and
fx_swish_01.wav
Missing File
/projects/game_name/fx_swish_01.wav
file://localhost/projects/game_name/fx_swish_01.wav: warning: Missing file: /projects/game_name/fx_swish_01.wav is missing from working copy
Those are the 2 errors, but I have 113 total (about 10 of the obstructing, and 100 of the missing). I'm assuming this is because the project somehow still thinks I am using SVN for my SCM, when in fact I am using ONLY perforce from outside of Xcode.
Does anyone have a clue on what I need to do? I don't care if files get clobbered, ignored, deleted, whatever... I have everything in perforce that I think I need. Thanks in advance.
EDIT:
I got some of the 'missing from working copy' warnings by doing: svn delete --force. Is this going to bite me later down the line? I couldn't commit, but it did remove the warning. Here is a copy of what I did:
$ svn delete fx_swish_01.wav
svn: Use --force to override this restriction
svn: 'fx_swish_01.wav' has local modifications
$ svn delete fx_swish_01.wav --force
D fx_swish_01.wav
$ svn commit -m "deleted fx_swish_01.wav"
svn: Commit failed (details follow):
svn: Directory '/projects/game_name/build/Release-iphonesimulator/game_name.app.dSYM/.svn' containing working copy admin area is missing
$ svn delete fx_swish_02.wav
D fx_swish_02.wav
$ svn delete fx_swish_03.wav
D fx_swish_03.wav
$ svn delete fx_swish_04.wav
D fx_swish_04.wav
$ svn delete hey_what_a_crowd.mp3
D hey_what_a_crowd.mp3
$ cd build/Release-iphonesimulator/
$ ls
game_name.app game_name.app.dSYM game_name.app_old.dSYM
$ svn delete game_name.app.dSYM
svn: Directory 'game_name.app.dSYM/.svn' containing working copy admin area is missing
$ svn delete game_name.app.dSYM --force
D game_name.app.dSYM
svn: Directory 'game_name.app.dSYM/.svn' containing working copy admin area is missing
As you can see, I got the .wav files to remove and it seems to not give me those warnings anymore. The game_name.app.dSYM thin is still not working though... the admin area is missing? I'm sure if that file existed at one point, it sure don't anymore.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于您放弃了 svn,因此您可以删除以前版本控制工作中可能留下的所有 .svn 文件夹。
如果您尚未将 .svn 文件夹签入 p4,则从 Perforce 签出新副本也应该可行,在这种情况下,您应该从 p4 中将它们全部删除。
Since you switched away from svn, you can delete all the .svn folders that are probably left over from your previous version control efforts.
Checking out a fresh copy from Perforce should also work, provided you have not checked-in the .svn folders into p4, in which case you should delete them all from p4.
本文中提供的答案应该可以帮助您解决您看到的与丢失文件有关的警告:升级到 XCode 4 后出现缺少文件警告
The answers provided in this post should help you solve the warnings you are seeing that pertain to missing files: Missing file warnings showing up after upgrade to XCode 4