简体   繁体   English

为什么我看到有关使用LLVM的-falign-loops的编译错误?

[英]Why am I seeing a compilation error about -falign-loops using LLVM?

I have an iOS application that uses Core Plot, and after I upgraded to Xcode 4.5, I'm seeing the following error when building: 我有一个使用Core Plot的iOS应用程序,升级到Xcode 4.5后,在构建时看到以下错误:

clang: error: argument unused during compilation:
'-falign-loops=16' Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u‌​sr/bin/clang
failed with exit code 1

What can cause this and how can I fix it? 是什么原因引起的,如何解决?

-falign-loops is a GCC option not used by clang. -falign-loops是clang不使用的GCC选项。 It is normally a warning in clang, so I assume you have the compiler option set to treat warnings as errors ( -Werror ). 通常在clang中是警告,因此我假设您已将编译器选项设置为将警告视为错误( -Werror )。

I had the same issue using CorePlot, the following solved the problem 我在使用CorePlot时遇到了相同的问题,以下解决了该问题

  • Go to CorePlot-CocoaTouch Project 转到CorePlot-CocoaTouch项目
  • Build Settings 构建设置
  • Scroll down to Build Options 向下滚动到构建选项
  • Compiler for C/C++/Objective-C set its value to LLVM GCC 4.2 C / C ++ / Objective-C编译器将其值设置为LLVM GCC 4.2

Hope it resolves your issue 希望它能解决您的问题

暂无
暂无

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

相关问题 为什么我看到有关NSAutoreleasePool不可用的消息警告? - Why am I seeing a message warning about NSAutoreleasePool being unavailable? 在为Pebble手表进行开发时,为什么在iOS上的-setAppUUID:上看到错误? - Why am I seeing an error on -setAppUUID: on iOS when developing for the Pebble watch? 将Core Data属性从Integer 16更改为String时,为什么会出现此错误? - Why am I seeing this error when changing a Core Data attribute from Integer 16 to String? 为什么我在UI自动化工具中看到“尝试运行脚本时发生错误。”? - Why am I seeing “An error occurred while trying to run the script.” in the UI Automation instrument? 为什么我看到黑屏? 我没有分配东西吗? - Why am I seeing a black screen? Did I not alloc something? 设置CIAdditionCompositing过滤器时,为什么会看到NSUnknownKeyException? - Why am I seeing an NSUnknownKeyException when setting up a CIAdditionCompositing filter? 为什么在启用NSZombie时我会看到所有这些泄漏? - Why am I seeing all these leaks when NSZombie is enabled? LLVM错误:找到损坏的函数,编译中止 - LLVM ERROR: Broken function found, compilation aborted 为什么会看到“此应用程序不支持该设备的CPU类型”? - Why am I seeing “This application does not support this device's CPU type”? 为什么在 Apple 设备上解码 base64 文本字符串时会看到裁剪的图像? - Why am I seeing a cropped image when decoding a base64 text string on an Apple device?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM