我已经包含了API框架,但仍然出现错误:在AppDelegate.m文件中使用了未声明的标识符'QBSettings'。
#import <FYX/FYX.h>
#import "AppDelegate.h"
#import "ApplicationContext.h"
#import "EnableProximityViewController.h"
#import "LoginViewController.h"
@implementation AppDelegate
@synthesize window = _window;
@synthesize loginViewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Set QuickBlox credentials (You must create application in admin.quickblox.com)
[QBSettings setApplicationID:11948];
[QBSettings setAuthorizationKey:@"SHdXhhjVY7BL-GtGH"];
[QBSettings setAuthorizationSecret:@"3ZYjkXTzaUfd6kLTL"];
[QBSettings setAccountKey:@"yFHpgFbxe3hjkMXmjs9sv9u"];
最佳答案
找到了答案...
转到App-Name.pch,然后将导入添加到Framework文件。这就是链接的方式。
#import <Quickblox/Quickblox.h>
关于ios - QuickBlocks QBSettings获取未声明的标识符,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24598325/