列表命令挂在xcode中 [英] List command hangs in xcode

查看:73
本文介绍了列表命令挂在xcode中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jenkins Xcode插件( https://wiki.jenkins- ci.org/display/JENKINS/Xcode+Plugin )来构建iOS应用程序,但是在我从另一个开发人员继承的项目上运行以下命令时,该应用程序会挂起:

I am using the Jenkins Xcode plugin (https://wiki.jenkins-ci.org/display/JENKINS/Xcode+Plugin) to build an iOS application, however it hangs when running the following command on a project I have inherited from another developer:

$ /usr/bin/xcodebuild -list    

当我从终端手动运行此命令时,它也会挂起.有人知道原因是什么吗?显示的警告也会显示在我拥有的另一个项目上,但在这种情况下不会挂起.

It also hangs when I run this command manually from a terminal. Does anyone know what the cause may be? The warning displayed is also displayed on another project I have, but it does not hang in this case.

在OS X 10.10上运行Xcode 6.1

Running Xcode 6.1 on OS X 10.10

$ /usr/bin/xcodebuild -list
2014-11-12 04:47:21.234 xcodebuild[42642:1431240] [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-6604/IDEFoundation/SourceControl/Model/IDESourceControlManager.m:423
Details:  Error Domain=com.apple.dt.IDESourceControlErrorDomain Code=-1 "Missing extension: public.vcs.subversion" UserInfo=0x7f9792309200 {NSLocalizedDescription=Missing extension: public.vcs.subversion}
Object:   <IDESourceControlManager: 0x7f9792302860>
Method:   -loadRepositories
Thread:   <NSThread: 0x7f9790d2dbe0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
Information about project "DOHSmokefree":
Targets:
    DOHSmokefree
    DOHSmokefreeTests

Build Configurations:
    Debug
    Release

If no build configuration is specified and -scheme is not passed then "Release" is used.

推荐答案

在命令行上使用较新版本的subversion更新到Xcode 6.1时,我遇到了类似的问题. 在Xcode Preferences中禁用Source Control应该可以解决问题.

I had a similar issue when updating to Xcode 6.1 while using a newer version of subversion on the command line. Disabling Source Control in Xcode Preferences should do the trick.

如果这不是一种选择,您可以尝试使用这种技术在Xcode内替换Subversion实现,方法如下:

If that isn't an option you might try replacing the subversion implementation inside Xcode as I have done, using this technique: Use SVN 1.7 in XCode 4.3+

基本上,这将是以下步骤:

Basically that would be the following steps:

这假设您已经在/opt/subversion中安装了SVN 1.7,则可以从WANdisco获得它: http://www.wandisco.com/subversion/download#osx

This assumes you already have SVN 1.7 installed to /opt/subversion, you can get it from WANdisco: http://www.wandisco.com/subversion/download#osx

现在打开终端并使用sudo -s获得高架外壳.

Now open the Terminal and get an elevated shell using sudo -s.

然后,将cd插入XCode.app软件包中,并指向SVN二进制文件所在的位置.

Then, cd to inside the XCode.app package, to where the SVN binaries are.

创建一个备份目录并将旧的SVN文件移入其中

Make a backup directory and move the old SVN files into it

bash-3.2# mkdir bup
bash-3.2# mv svn* bup/

最后,象征性地将新文件链接到软件包中:

Lastly, symbolically link the new files into the package:

bash-3.2# ln -s /opt/subversion/bin/svn* ./

就这样!

这篇关于列表命令挂在xcode中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆