linker command failed with exit code 1 (use -v to see invocation)解决办法
2015-03-12 13:52
525 查看
[cpp] view
plaincopy
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FMDatabase", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在导入百度地图sdk和ASI第三方库的时候都遇到过这种问题,在网上查找了各种资料,今天就总结一下各种办法
1、可能引入了重复的文件,仔细查找一下删掉重复的就好了
2、可能缺少库或者文件,网上搜索一下你所引入的第三方库还需要别的什么系统库才能正常使用,跳转到“Build
Phases”标签,展开“Link Binary With Libraries”分组,点击“+”添加类库,将那些库引入进去就好了
3、我们在使用这些第三方类库文件时直接将其拖拽到工程之中,编译的的时候Xcode也没有自动引用,所以造成这样错误,这就需要我们手动添加。解决办法是:在工作左边导航栏Target-->Build
Phases-->compile Sources中,第三库库的所有.m文件都添加到里面
4、 Build
settings->Linking->Other Linker Flags将此属性修改成-all_load 或者 -ObjC
反正各种办法都试试吧,网上我一共找到了这几种方法,不过大多时候都可能是缺少系统类库
plaincopy
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_FMDatabase", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在导入百度地图sdk和ASI第三方库的时候都遇到过这种问题,在网上查找了各种资料,今天就总结一下各种办法
1、可能引入了重复的文件,仔细查找一下删掉重复的就好了
2、可能缺少库或者文件,网上搜索一下你所引入的第三方库还需要别的什么系统库才能正常使用,跳转到“Build
Phases”标签,展开“Link Binary With Libraries”分组,点击“+”添加类库,将那些库引入进去就好了
3、我们在使用这些第三方类库文件时直接将其拖拽到工程之中,编译的的时候Xcode也没有自动引用,所以造成这样错误,这就需要我们手动添加。解决办法是:在工作左边导航栏Target-->Build
Phases-->compile Sources中,第三库库的所有.m文件都添加到里面
4、 Build
settings->Linking->Other Linker Flags将此属性修改成-all_load 或者 -ObjC
反正各种办法都试试吧,网上我一共找到了这几种方法,不过大多时候都可能是缺少系统类库
相关文章推荐
- linker command failed with exit code 1 (use -v to see invocation)报错解决办法
- IOS的linker command failed with exit code 1 (use -v to see invocation)解决办法
- clang: error: linker command failed with exit code 1 (use -v to see invocation)解决办法
- 在ios 项目中出现 linker command failed with exit code 1 (use -v to see invocation)解决办法
- linker command failed with exit code 1 (use -v to see invocation)解决办法
- clang: error: linker command failed with exit code 1 (use -v to see invocation) 解决办法
- iOS开发中Xcode编译错误 linker command failed with exit code 1 (use -v to see invocation) 的解决办法
- linker command failed with exit code 1 (use -v to see invocation)解决办法
- 【linker command failed with exit code 1 (use -v to see invocation)】错误的解决办法
- linker command failed with exit code 1 (use -v to see invocation)解决办法
- 解决 linker command failed with exit code 1 (use -v to see invocation) 方法
- error: linker command failed with exit code 1 (use -v to see invocation)怎么解决
- iOS开发-Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)
- IOS如何解决烦人的“clang: error: linker command failed with exit code 1 (use -v to see invocation)”问题
- linker command failed with exit code 1 (use -v to see invocation)解决方法
- clang: error: linker command failed with exit code 1 (use -v to see invocation)解决方法
- ios clang: error: linker command failed with exit code 1 (use -v to see invocation)解决方法
- iOS报错:linker command failed with exit code 1 (use -v to see invocation)解决方法
- Xcode编译常见错误解决:linker command failed with exit code 1 (use -v to see invocation)
- IOS-59-解决错误:linker command failed with exit code 1 (use -v to see invocation)