所以我将项目添加到XCode,就像在本教程中一样:http://quickblox.com/developers/IOS-how-to-connect-Quickblox-framework
QBUsers类工作得很好,但是当我使用QBChat时,我开始遇到链接器错误:
Undefined symbols for architecture i386:
“operator delete(void*)”,referenced from:
-[QBVideoChat initAudioCapture] in Quickblox(QBVideoChat.o)
“operator new(unsigned long)”,referenced from:
-[QBVideoChat initAudioCapture] in Quickblox(QBVideoChat.o)
“___gxx_personality_v0”,referenced from:
Dwarf Exception Unwind Info (__eh_frame) in Quickblox(QBVideoChat.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command Failed with exit code 1 (use -v to see invocation)
这是导致问题的那一行(如果我将其注释掉,链接器错误就会消失):
[[QBChat instance] setDelegate:self];
发生问题的类实现以下协议:
<QBActionStatusDelegate,QBChatDelegate>
这是我导入项目的框架列表:
-lxml2 -lresolv -lz -framework AVFoundation -framework CoreVideo -framework Accelerate -framework CoreMedia -framework AudioToolBox -framework CoreData -framework CoreLocation -framework CoreGraphics -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework Quickblox -framework UIKit -framework Foundation