重构函数错误 - “不是此工作空间中Xcode 3项目中任何目标的构建阶段的一部分,因此无法重构” [英] refactor function error - "is not part of the build phase of any targets in the Xcode 3 projects in this workspace and so can't be refactored"

查看:163
本文介绍了重构函数错误 - “不是此工作空间中Xcode 3项目中任何目标的构建阶段的一部分,因此无法重构”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过XCode 4.1中的分类.h文件中的refactor-> rename按钮重命名函数的名称我收到此错误:(错误和正文)

Trying to rename a function's name via the refactor->rename button in a categoriy's .h file in XCode 4.1 I'm getting this error: (error and body)

UINavigationController + ZG.h不是此工作空间中Xcode 3项目中任何目标的构建阶段的一部分,因此无法重构。

UINavigationController+ZG.h is not part of the build phase of any targets in the Xcode 3 projects in this workspace and so can’t be refactored.

添加将文件发送到此工作区中Xcode 3项目中目标的构建阶段,或在另一个文件中进行选择。

Add the file to the build phase of a target in an Xcode 3 project in this workspace, or make a selection in another file.

不确定它想要什么以及它为什么要说某事关于xcode 3,当我没有任何xcode 3项目或类似的东西。

Not sure what it wants and why it's saying something about xcode 3 when i don't have any xcode 3 projects or anything like that.

推荐答案

我今天遇到了这个问题根本不使用工作空间的项目。
我无法理解为什么Xcode表现有线。自动完成工作,但返回一些真正无关的结果作为我的家庭名称(?!)为我正在处理的课程。

I had this issue today on a project which don't use workspace at all. I couldn't get why Xcode behave wired. Auto complete worked, but return some really unrelevant results as my FAMILY NAME (?!) for a class I was working on.

我发现它是Xcode中的一个错误4.1在OS X 10.7.1下与我遇到的其他问题一起。
当我重新打开我的项目时,消息消失了,重构按预期工作,并且自动完成工作也正常。

I found it to be a bug in Xcode 4.1 under OS X 10.7.1 along side with other issues i had. When I reopen my project, the message was gone, refactoring worked as expected and auto-completing worked as well.

2013年9月更新:
似乎这个错误也发生在Xcode 5& 10.8.5。

September 2013 Update: It seems that this bug is happening also on Xcode 5 & 10.8.5.

这篇关于重构函数错误 - “不是此工作空间中Xcode 3项目中任何目标的构建阶段的一部分,因此无法重构”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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