xcode 命令 /Xcode4/Platforms/iPhoneOS.platform/Developer/usr/bin/clang 失败,退出代码为 252

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5130412/
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 20:19:57  来源:igfitidea点击:

Command /Xcode4/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 252

xcodeios

提问by JJJollyjim

I am trying to build ASI HTTP REQUEST iPHONE, and it works fine on the simulator. When I build to my iPhone 4 or iPod touch 2G, I get all this: enter image description here

我正在尝试构建 ASI HTTP REQUEST iPHONE,它在模拟器上运行良好。当我构建到我的 iPhone 4 或 iPod touch 2G 时,我得到了所有这些: 在此处输入图片说明

Although sometimes I get exit code 252...

虽然有时我会收到退出代码 252...

Any help appreciated.

任何帮助表示赞赏。

采纳答案by ughoavgfhw

If you look at the picture, it says "ld: unknown option: -demangle". Check your build options and disable things that have to do with demangling.

如果您查看图片,它会显示“ld:未知选项:-demangle”。检查您的构建选项并禁用与 demangling 相关的事情。

回答by Dev2rights

Hi i had this issue when writing a wrapper for Android NDK and iOS. I had a class like MyClass.h then MyClass.mm (iOS side) and MyClass.cpp. I was supposed to only include the .mm and not the .cpp.

嗨,我在为 Android NDK 和 iOS 编写包装器时遇到了这个问题。我有一个像 MyClass.h 这样的类,然后是 MyClass.mm(iOS 端)和 MyClass.cpp。我应该只包含 .mm 而不是 .cpp。