xcode 清理失败

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1639578/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:55:39  来源:igfitidea点击:

xcode clean failed

iphonexcodeosx-snow-leopard

提问by John Friend

Both my iPhone projects are sometimes giving a "build failed" error with no explanation of what the error is, and then a "clean failed" when I try to do a clean. I tty emptying the xcode cache but that doesn't seen to help. What normally clears it is re-starting my Mac. However, that has just failed to work.

我的两个 iPhone 项目有时都会给出“构建失败”错误,但没有解释错误是什么,然后当我尝试清理时会出现“清理失败”。我清空了 xcode 缓存,但这似乎没有帮助。通常清除它的是重新启动我的 Mac。然而,这并没有奏效。

Has anybody else experienced this? I'm using the latest version of the SDK on Snow leopard.

有没有其他人经历过这种情况?我在雪豹上使用最新版本的 SDK。

(My Mac has also completely frozen twice today to the extent that only turning it off at the mains seemed to revive it so not a good day).

(我的 Mac 今天也完全冻结了两次,以至于只有在电源处关闭它似乎才能恢复它,所以不是一个好日子)。

回答by EToreo

Make sure you have enough disk space on your mac.

确保您的 mac 上有足够的磁盘空间。

Then go and delete your build directory in the project. Close xcode, open it back up. Try to build.

然后去删除你在项目中的构建目录。关闭xcode,重新打开它。尝试构建。

Hope that works, its just a guess.

希望有效,这只是一个猜测。

回答by oefe

Your Mac froze? Twice? On the Same Day? Seems your Mac is in serious disorder, I would look for this first. Maybe the build problems are just another symptom of a bigger issue.

你的 Mac 死机了?两次?在同一天?看来您的 Mac 出现严重故障,我会先查找此问题。也许构建问题只是更大问题的另一个症状。

回答by Justin Searls

Also, apart from checking out Xcode's logs in Console.app and posting anything interesting, did you install Xcode 3.2 from the Snow Leopard DVD before installing the iPhone 3.1.2 SDK for Snow Leopard?

此外,除了在 Console.app 中查看 Xcode 的日志并发布任何有趣的内容之外,您是否在安装 iPhone 3.1.2 SDK for Snow Leopard 之前从 Snow Leopard DVD 安装了 Xcode 3.2?

If you upgrade to Snow Leopard (w/ Xcode 3.1 installed), and then immediately install the latest iPhone SDK (before installing Xcode 3.2 from the Snow Leopard disc), you may experience grave problems like this one. I know I did.

如果您升级到 Snow Leopard(安装了 Xcode 3.1),然后立即安装最新的 iPhone SDK(在从 Snow Leopard 光盘安装 Xcode 3.2 之前),您可能会遇到这样的严重问题。我知道我做到了。

回答by TechZen

It sounds like you have disk/file problems. Check the permissions on the files and directories in the projects build folder. If you've lost permission for one of the files, the clean will fail.

听起来您有磁盘/文件问题。检查项目构建文件夹中文件和目录的权限。如果您失去了其中一个文件的权限,则清理将失败。