ld: symbol(s) not found for architecture armv7s
来源:互联网 发布:贤友板材优化软件 编辑:程序博客网 时间:2024/05/21 13:59
XCODE4升级到XCODE5编译就不通过了错误如下:
ld: warning: directory not found for option '-L/Users/paul/Android/baidu_tongji_source/ios-sdk/BaiduMobStatSample/../BaiduMobStat/DerivedData/BaiduMobStat/Build/Products/Debug-iphoneos'
ld: warning: ignoring file /Users/paul/Library/Developer/Xcode/DerivedData/BaiduMobStatSample-eqytpjphifilvcdgslntagloteig/Build/Products/Debug-iphoneos/libBaiduMobStat.a, file was built for archive which is not the architecture being linked (armv7s): /Users/paul/Library/Developer/Xcode/DerivedData/BaiduMobStatSample-eqytpjphifilvcdgslntagloteig/Build/Products/Debug-iphoneos/libBaiduMobStat.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_BaiduMobStat", referenced from:
objc-class-ref in BaiduMobStatAppDelegate.o
objc-class-ref in MyPageLogViewController.o
(maybe you meant: _OBJC_CLASS_$_BaiduMobStatAppDelegate)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
进入Build Settings 找到Architectures 选择Standard architectures
找到Valid Architectures选择armv7和armv7s两项,其余删除
此时clean工程 编译如果还出现该错误,请找到Build Active Architecture Only项选择YES,然后编译通过后再改回NO。之后就正常了。
- ld: symbol(s) not found for architecture armv7s
- ld: symbol(s) not found for architecture armv7s
- ld: symbol(s) not found for architecture armv7s
- Mavericks boost ld: symbol(s) not found for architecture x86_64
- ld: symbol(s) not found for architecture arm64
- ld: symbol(s) not found for architecture x86_64
- ld: symbol(s) not found for architecture i386
- ld: symbol(s) not found for architecture i386
- ld: symbol(s) not found for architecture x86_64
- ld: symbol(s) not found for architecture i386
- ld: symbol(s) not found for architecture x86_64问题解决
- ios ld: symbol(s) not found for architecture i386
- cocoa pods ld: symbol(s) not found for architecture i386
- _OBJC_CLASS_$ ld: symbol(s) not found for architecture i386
- ld: symbol(s) not found for architecture i386
- LD: SYMBOL(S) NOT FOUND FOR ARCHITECTURE ARMV7
- cocoa pods ld: symbol(s) not found for architecture i386
- ld: symbol(s) not found for architecture XXX
- Leetcode:Remove Duplicates from Sorted List II
- 内联(inline)函数和宏定义(#define)的区别
- 求一点在空间平面上的垂足
- 2014年亚洲值得关注的15家科技IPO
- Jquery dialog
- ld: symbol(s) not found for architecture armv7s
- LINUX内核中的xx_initcall初始化标号
- NOEO滤波器优化设计
- QEMU 与QEMU-KVM区别
- 读jQuery Blog之Mini Tutorial
- CString::Format()函数用法解析
- 关于在函数中定义大数组(局部变量)所导致的问题
- 将Ubuntu14.04与现有Centos组成双系统以及恢复原样
- RFC6455-The WebSocket protocol 之八:7. Closing the Connection & 8. Error Handling