【发布时间】:2015-07-13 08:41:26
【问题描述】:
我知道有些人可能会抱怨这个问题,但我收到以下错误并且无法理解:
在文本中:
Undefined symbols for architecture x86_64:
"__TFSs26_forceBridgeFromObjectiveCU__FTPSs9AnyObject_MQ__Q_", referenced from:
__TFC10SimpleTest14ViewController9writeTextfS0_FCSo15UIBarButtonItemT_ in ViewController.o
__TFC10SimpleTest9Websocket17createHTTPRequestfS0_FT_T_ in Websocket.o
__TFC10SimpleTest9Websocket19initStreamsWithDatafS0_FTCSo6NSDataSi_T_ in Websocket.o
__TFC10SimpleTest9Websocket16disconnectStreamfS0_FGSqCSo7NSError_T_ in Websocket.o
__TFC10SimpleTest9Websocket15errorWithDetailfS0_FTSS4codeVSs6UInt16_CSo7NSError in Websocket.o
__TFFC10SimpleTest9Websocket15processResponseFS0_FCS0_10WSResponseSbU_FT_T_ in Websocket.o
"__TFSsoi1oUSs17_RawOptionSetType_USs21BitwiseOperationsTypeSs9Equatable__FTQ_Q__Q_", referenced from:
__TFC10SimpleTest11AppDelegate11applicationfS0_FTGSQCSo13UIApplication_29didFinishLaunchingWithOptionsGSQCSo12NSDictionary__Sb in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我认为这与桥接头有关。我的项目在 Swift 中,但我添加了一些 pod(Obj-C)。我已经搜索了几个小时,但找不到任何可行的解决方案!
感谢您的帮助!
【问题讨论】:
-
我看不懂那张小图。什么是链接器错误?
-
对不起,我用文本中的错误更新了答案。