简体   繁体   English

构建时出现Xcode错误

[英]Xcode Error When Building

Whenever I compile something in Xcode, I get 3 errors. 每当我在Xcode中编译内容时,都会出现3个错误。 One is under "Checking dependencies" and says "Unable to create directory /var/folders/zZ/string of letters/more directories/more letters." 一个在“检查依赖项”下,并说“无法创建目录/ var / folders / zZ /字母字符串/更多目录/更多字母”。 What is wrong with Xcode/my computer? Xcode /我的计算机怎么了? I switched to the Xcode 4 preview and that works fine, but is not stable. 我切换到Xcode 4预览版,效果很好,但不稳定。 Yes, I have tried restarting. 是的,我尝试重新启动。 This has been going on for weeks. 这已经持续了好几个星期。 Thanks for the help. 谢谢您的帮助。

I had a similar issue, which showed up after switching to xcode 4. The error was: 我有一个类似的问题,切换到xcode 4后出现。错误是:

error: unable to create '/build' (Permission denied) 错误:无法创建“ / build”(权限被拒绝)

The solution was to change '/build' to 'build' in the project configuration under Intermediate Build File Path. 解决方案是在中间配置文件路径下的项目配置中将“ / build”更改为“ build”。

In your case I would guess the pch file has a path that starts with '/'. 在您的情况下,我想pch文件具有以'/'开头的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM