- Xcode 编译报错 Undefined symbols for
- Undefined symbols for architectu
- 拖入文件不能自动添加到compile sources
- Undefined symbols for architectu
- 导入第三方库后,出现Undefined symbols for
- Pod第三方报错 Undefined symbols for a
- Pod第三方报错 Undefined symbols for a
- Undefined symbols for architectu
- _OBJC_CLASS_$_HiMainViewControll
- 极光推送模拟器报错(关于Build Active Archite
问题描述:
使用cocoapod加入第三方库,打开项目有时会出现编译错误,错误如下:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in AFNetworkingUtil.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决步骤
1. 检查 Build Setting -> Architectures 配置是否正确

2. 在 target -> Build Settings -> Other Linker Flags 添加字段
$(inherited)
网友评论