Xcode没有编译任何项目? 'clang因退出代码255而失败' [英] Xcode not compiling any project? 'clang failed with exit code 255'

查看:481
本文介绍了Xcode没有编译任何项目? 'clang因退出代码255而失败'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有基本上是标题所说的,我正在处理我的项目没有任何问题,然后突然间它只是停止编译。导致这一点的唯一原因是我的.m文件之一在我意外重命名时变为红色,我不得不删除它并替换它但是就是这样。我四处搜索,可以确认这不是导致问题的我的Bundle Id。我也用llvm-gcc运行它,得到这个'llvm-gcc-4.2失败,退出代码为1'并提供帮助?谢谢!

Hey all basically what the title says, I was working on my project with no issues and then all of the sudden it just stopped compiling. The only thing that led up to this was one of my .m files turned red when I accidentally renamed it and I had to delete it and replace it but that was it. I searched around and can confirm it is not my Bundle Id that is causing the issue. I also ran it with llvm-gcc and got this 'llvm-gcc-4.2 failed with exit code 1' and help? Thanks!

ETA:
这也是它在小错误框中所说的内容:

ETA: This is also what it says in the little error box:

clang:错误:无法执行命令:posix_spawn失败:资源暂时不可用
clang:错误:clang frontend命令因信号1失败(使用-v查看调用)
命令/开发人员/平台/ iPhoneOS .platform / Developer / usr / bin / clang失败,退出代码为255

clang: error: unable to execute command: posix_spawn failed: Resource temporarily unavailable clang: error: clang frontend command failed due to signal 1 (use -v to see invocation) Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 255

推荐答案

我刚才有同样的错误,同样的情况(代码工作得很好,然后突然有错误消息)。对我来说,我只是关闭了模拟器并再次打开它,然后xCode不再抱怨了。

I just had that same error, same situation(the code worked totally fine, then suddenly has that error message). For me I just closed the simulator and opened it again then xCode does not complain anymore.

您是否尝试在设备中运行代码?

Have you tried to run your code in device?

这篇关于Xcode没有编译任何项目? 'clang因退出代码255而失败'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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