重构问题 XCode 4.0.1 [英] Refactoring Problem XCode 4.0.1

查看:35
本文介绍了重构问题 XCode 4.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我尝试按照教科书中的步骤在 XCode 中重构类的名称.我确信我做的一切都是正确的,我从 App Store 下载了 XCode.基本上,每当我右键单击 -> 重构 -> 名称 -> 预览时,xcode 都会崩溃.这是错误:

So i was trying to refactor the name of a class in XCode following the steps in my text book. I'm sure I'm doing everything right and I downloaded XCode off the App Store. Basically, whenever I right-click -> refactor -> name -> preview, xcode crashes. Here's the error:

<代码>/SourceCache/DVTFoundation/DVTFoundation-227/Framework/Classes/Utilities/DVTTask.m:208 中的断言失败

ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-227/Framework/Classes/Utilities/DVTTask.m:208

详情:启动前必须设置启动路径.

Details: The launch path must be set before launching.

对象:

方法:-launchRunningTerminationHandlerOnQueue:error:terminationHandler:

Method: -launchRunningTerminationHandlerOnQueue:error:terminationHandler:

线程:{name = (null), num = 15}

Thread: {name = (null), num = 15}

提示:无

Hints: None

有什么想法吗?

谢谢

P.S.,抱歉,我不知道如何使用引号

P.S., sorry, i dont know how to using the quotes

固定.我在显示包内容"-> 资源-> XCODE 和 IOS SDK

Fixed. I reinstalled with the package in side resources under "Show Package Contents" -> Resources -> XCODE and IOS SDK

推荐答案

如果 Xcode 本身崩溃,那是 Xcode 中的一个 bug,你应该 举报.使用 Refactor 命令重命名类至少在某些时候确实有效——我只是在 Xcode 4.0.1 上尝试了两次,预览没有问题.

If Xcode itself crashes, that's a bug in Xcode and you should report it. Using the Refactor command to rename a class definitely works at least some of the time -- I just tried it twice with Xcode 4.0.1 and the preview comes up with no problem.

我建议创建一个新项目并在那里尝试 Refactor 命令.如果它有效并且没有崩溃,那么您现有的项目可能与问题有关.如果它不起作用,则可能表明问题与您的 Xcode 安装或机器配置有关.这只是尝试帮助您找到解决问题的方法,不过……同样,如果 Xcode 崩溃,则 Xcode 存在问题.

I'd suggest creating a new project and trying the Refactor command there. If it works and doesn't crash, then your existing project may have something to do with the problem. If it doesn't work, that might suggest that the problem is related to your Xcode installation or machine configuration. This is just an attempt to help you find a way to work around the issue, though... Again, if Xcode is crashing, then there's a problem in Xcode.

这篇关于重构问题 XCode 4.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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