工程中报错或者警告一些情况及解决办法。例如:does not contain bitcode. You must rebuild it with bitcode enabled
2016-04-07 16:14
716 查看
1.问题描述
ld: '/Users/zfj_apple/Desktop/EaseMobDemo/EaseMobSDK/lib/libEaseMobClientSDK.a(easemobvideo.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the
vendor, or disable bitcode for this target. for architecture arm64
错误解析:你添加的SDK(例如:友盟、环信)的二进制库不支持bitcode,但是Xcode默认是支持bitcode的,而且如果支持的话,其中所有的二进制库和framework都必须包含bitcode。
解决办法:
2.问题描述:
Warning: Multiple build commands for output file /Users/zfj_apple/Library/Developer/Xcode/DerivedData/CosFundLife-factdirmepkoabctyvlrqnaectpn/Build/Products/Debug-iphonesimulator/CosFundLife.app/bottom@2x.png
错误解析:工程中有重复引用的文件;
解决办法:删除重复的文件;
3.问题描述:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_LifeHomeModel", referenced from:
objc-class-ref in TCLifeViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误解析:找不到这个LifeHomeModel类文件,没有引用上;
解决办法:
4.问题描述:
ld: warning: directory not found for option '-F/Users/zfj_apple/Desktop/CosFundLifeNew/CosFundLife/TCThirdPartySDK/OneApm'
解决办法:
选择工程, 编译的 (targets)
选择 Build Settings 菜单
查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即OK
5.问题描述:
Unsupported Configuration: This file is set to build for a version older than the deployment target. Functionality may be limited.
解决办法:
6.问题描述:
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
- (void)setText:(NSString *)text{
self.text = text;
self.nameLabel.text = text;
}
解决办法:这是因为self导致了无限循环,改为_text = text;
ld: '/Users/zfj_apple/Desktop/EaseMobDemo/EaseMobSDK/lib/libEaseMobClientSDK.a(easemobvideo.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the
vendor, or disable bitcode for this target. for architecture arm64
错误解析:你添加的SDK(例如:友盟、环信)的二进制库不支持bitcode,但是Xcode默认是支持bitcode的,而且如果支持的话,其中所有的二进制库和framework都必须包含bitcode。
解决办法:
2.问题描述:
Warning: Multiple build commands for output file /Users/zfj_apple/Library/Developer/Xcode/DerivedData/CosFundLife-factdirmepkoabctyvlrqnaectpn/Build/Products/Debug-iphonesimulator/CosFundLife.app/bottom@2x.png
错误解析:工程中有重复引用的文件;
解决办法:删除重复的文件;
3.问题描述:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_LifeHomeModel", referenced from:
objc-class-ref in TCLifeViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误解析:找不到这个LifeHomeModel类文件,没有引用上;
解决办法:
4.问题描述:
ld: warning: directory not found for option '-F/Users/zfj_apple/Desktop/CosFundLifeNew/CosFundLife/TCThirdPartySDK/OneApm'
解决办法:
选择工程, 编译的 (targets)
选择 Build Settings 菜单
查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即OK
5.问题描述:
Unsupported Configuration: This file is set to build for a version older than the deployment target. Functionality may be limited.
解决办法:
6.问题描述:
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
- (void)setText:(NSString *)text{
self.text = text;
self.nameLabel.text = text;
}
解决办法:这是因为self导致了无限循环,改为_text = text;
相关文章推荐
- 基于jQuery的弹出警告对话框美化插件(警告,确认和提示)
- Perl中捕获警告信息、异常信息并写入日志详解
- 关于php程序报date()警告的处理(date_default_timezone_set)
- PHP date()函数警告: It is not safe to rely on the system解决方法
- iOS警告收录及科学快速的消除方法
- [Unity3D]引擎崩溃、异常、警告、BUG与提示总结及解决方法
- c++中,不指定数据类型,小数为double
- Mark一下 Nested weights are bad for performance
- 解决Your content must have a ListView whose id attribute is 'android.R.id.list'
- @SuppressWarnings注解
- VC++ warning C4819 的解决方法
- 如何处理空指针警告
- iOS8.0以上Label的警告处理
- 百度地图iOS开发 HelloWorld 流程,警告及解决办法
- eclipse 启动tomcat6.0 “警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property '”
- 解决警告“ld: warning: directory not found for option”
- Visual Studio, 忽略特定警告
- QT 编译警告 qobject_cast to QGraphicsItem will not work
- 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org
- 关于Android的This text field does not specify an inputType or a hint 问题