1

I am using Xcode 4.1 with iOS SDK 4.3

When executing the line below, the app crashes in device but not in Simulator.

    [BumpClient configureWithAPIKey:@"MYAPIKEY" andUserID:[[UIDevice currentDevice] name]];

There is no crash log, but the execution stops at above line saying "Thread 1:Program received signal: "SIGSYS"

4

1 回答 1

3

正如我所看到的,您正在使用带有 BumpClient 对象的配置 API 密钥。实际上需要创建 BumpAPI 的对象,并且键将像这样设置

    api = [BumpAPI sharedInstance];
    [api configAPIKey:@"69d6db94740a4e9e8e9ba98ey0e64c74"];
    [api configUIDelegate:self];
    [api configDelegate:self];
    [api requestSession];

这里 api 是 BumpAPI 的对象,并在请求该会话之后配置 API 密钥。

   [[BumpAPI sharedInstance] simulateBump];

模拟凹凸在设备上启动凹凸动作。所以只需要将凹凸委托附加到自身而不是设备。

于 2013-03-08T05:03:43.800 回答