使用 QuickBlox 时由于未捕获的异常 'NSInvalidArgumentException' 而终止应用程序
Terminating app due to uncaught exception 'NSInvalidArgumentException' while Using QuickBlox
在使用 Quickblox api 进行简单聊天时受到欺骗
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[QBRequest logInWithUserLogin:password:successBlock:errorBlock:]: unrecognized selector sent to class 0x109e93cb8'
我刚刚相应地添加了所有框架 Quickblox Doc 并调用了这个方法:
[QBRequest logInWithUserLogin:userName password:password successBlock:^(QBResponse *response, QBUUser *user){
} errorBlock:^(QBResponse *response) {
// error handling
NSLog(@"error: %@", response.error);
NSError *error = (NSError*)response.error;
block (nil, error);
}];
我认为您在项目构建设置中缺少其他链接器标志
转到项目构建设置搜索 "other linker flag" 并在那里添加以下标志:
-lstdc++
-ObjC
-lxml2
希望它能奏效。
在使用 Quickblox api 进行简单聊天时受到欺骗
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[QBRequest logInWithUserLogin:password:successBlock:errorBlock:]: unrecognized selector sent to class 0x109e93cb8'
我刚刚相应地添加了所有框架 Quickblox Doc 并调用了这个方法:
[QBRequest logInWithUserLogin:userName password:password successBlock:^(QBResponse *response, QBUUser *user){
} errorBlock:^(QBResponse *response) {
// error handling
NSLog(@"error: %@", response.error);
NSError *error = (NSError*)response.error;
block (nil, error);
}];
我认为您在项目构建设置中缺少其他链接器标志
转到项目构建设置搜索 "other linker flag" 并在那里添加以下标志:
-lstdc++
-ObjC
-lxml2
希望它能奏效。