[英]clang failed with exit code 1 error
I have downloaded a sample code of OpenEars form the web, in that at a place these statements were using: 我从网络上下载了OpenEars的示例代码,在这些地方使用了以下语句:
@autoreleasepool { … } which was giving error: Unexpected '@' in program, then I replaced these lines of code with: NSAutoreleasePool *pool = [NSAutoreleasePool new]; @autoreleasepool {…}给出错误:程序中出现意外的“ @”,然后我将这些代码行替换为:NSAutoreleasePool * pool = [NSAutoreleasePool new]; … [pool drain];
……[水池排水口]; and now I am getting error: "clang failed with exit code 1 error".
现在我得到了错误:“ clang失败,退出代码为1错误”。
Does any one know how to solve this? 有谁知道如何解决这个问题? I am using XCode 3.2.5
我正在使用XCode 3.2.5
You definitely want to go back to @autoreleasepool{}
but it sounds like the issue is in the compiler/arguments though. 您肯定想回到
@autoreleasepool{}
但这听起来像是问题出在编译器/参数中。 That may be difficult to debug, depending on how old the project was. 这可能很难调试,具体取决于项目的年代。 Are you using the latest Xcode, and if so, can you "upgrade project settings"?
您是否正在使用最新的Xcode,如果可以,则可以“升级项目设置”吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.