简体   繁体   English

铛失败,退出代码为1错误

[英]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.

相关问题 铛:错误:链接器命令失败,退出代码为1 - clang: error: linker command failed with exit code 1 编译器错误为clang:错误:链接器命令失败,退出代码为1(使用-v查看调用),且应用程序已完成 - Compiler error as clang: error: linker command failed with exit code 1 (use -v to see invocation) with completed app 错误:命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1 - error:Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 5 - clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5 - clang: error: linker command failed with exit code 1 (use -v to see invocation) ld:未找到框架 GoogleMapsCore clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) - ld: framework not found GoogleMapsCore clang: error: linker command failed with exit code 1 (use -v to see invocation) ld:找不到框架-加速clang:错误:链接器命令失败,退出代码为1 - ld: framework not found -Accelerate clang: error: linker command failed with exit code 1 ld:找不到-lGoogleAnalyticsServices clang的库:错误:链接器命令失败,退出代码为1(使用-v查看调用) - ld: library not found for -lGoogleAnalyticsServices clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 没有编译任何项目? 'clang 失败,退出代码为 255' - Xcode not compiling any project? 'clang failed with exit code 255' nimblekit失败,出现退出代码1错误 - nimblekit failed with exit code 1 error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM