Apple LLVM compiler 3.0 error
来源:互联网 发布:手机淘宝信用卡付款 编辑:程序博客网 时间:2024/05/17 06:27
原创文章:转载请注明出处: http://www.cnblogs.com/mfryf/archive/2012/02/26/2369190.html
从苹果的开发官网下载的程序编译不能通过总是报这个问题,
iOS 5 - Apple LLVM compiler 3.0 error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 254
折腾了很久,终于解决了
网上有人说手动修改.pch 文件,添加所有引用的投文件到 .pch文件中
原始内容:
/*
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
...
#endif
*/
修改后内容:
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
二、试了之后,可以成功在模拟器上运行,但是真机调试还是有问题。
有经过一段时间探索,发现有些工程的编译器选的default compiler(Apple LLVM 3.0),
对了问题就在这里,不要用默认的,自己手动设置这个,然后编译就没问题了。
好像是因为选择默认编译器的时候,在编译的时候对于某些文件的编译会选错编译器。
目前这种方法能够成功解决我的问题环境 mac snow Leopard xcode4.2 sdk ios5
三、还有一种情况,可能是项目的路径太复杂,或者有特殊符号,把项目移动到一个简单的路径下面,去掉特殊符号,
可以解决问题
希望对大家有帮助
- Apple LLVM compiler 3.0 error
- Apple LLVM compiler 3.0 error
- iOS 5 - Apple LLVM compiler 3.0 error
- Apple LLVM compiler 3.0 error file".h" has been modified.....
- Xcode Apple LLVM compiler 4.2 Error
- Apple LLVM 6.0 Error
- Apple LLVM 6.0 Error
- Apple LLVM 8.0 Error
- apple llvm 8.1 error
- Apple LLVM compiler 4.2 与LLVM GCC的区别
- APPLE LLVM 6.0 ERROR解决办法。
- ios开发笔记----Apple LLVM compiler 4.2 error error file "xxxxx.h" has been modified since the precompile
- iOS apple LLVM 6.0 error解决方法
- Apple LLVM 6.1 Error (unity ios工程)
- iOS error APPLE LLVM 5.1 Error UIKit.pcm was built
- iOS APPLE LLVM 5.0 Error 之 ‘....UIKit.pcm' was built
- Xcode6中Apple LLVM 6.0 Error的解决办法
- How to find arm-apple-darwin#-llvm-gcc-4.2 compiler on Xcode 5?
- 文件适配器(5)
- 使用Notifications(各种大大得讲解)
- VPS服务器管理手册
- 任意文件打包进apk
- 汉字编码
- Apple LLVM compiler 3.0 error
- 大数据量高并发的数据库优化(一)
- OEM配置JMS Destination报错
- iOS Code Signing: 解惑
- 文件适配器(6)
- iPhone开发中经常用到的控件尺寸大集合
- 如何在JavaScript访问C#变量
- 大数据量高并发的数据库优化(二)
- 【转】JS VLC插件