当我将AsyncSocket.h
和.m
添加到我的项目时,我收到了此错误
Undefined symbols for architecture i386:
" _OBJC_CLASS_$_AsyncSocket", 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)
如何解决这个问题?
答案 0 :(得分:1)
解决问题的2个步骤:
将CFNetwork.framework
添加到项目
从Xcode导航器(左侧)选择AsyncSocket.m
,从检查员(右侧)选择目标会员部分下的项目名称
或转到Build Phases> Link Binary with Libraries>点击(+)>添加AsyncSocket.m
答案 1 :(得分:0)
将Security.framework添加到Link Binary with Library:)