iOS SDK をアプリに統合するために、Chartboost のドキュメントに従ってすべての手順を実行しました。しかし、Chartboost を呼び出す最後の段階で、コンパイル エラーが発生します。
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Begin a user session. Must not be dependent on user actions or any prior network requests.
// Must be called every time your app becomes active.
[Chartboost startWithAppId:@"some_id" appSignature:@"some_signature" delegate:self];
// Show an ad at location "CBLocationHomeScreen"
[[Chartboost sharedChartboost] showInterstitial:CBLocationHomeScreen];
メソッドの呼び出しでstartWithAppId
、次のエラーが発生します。
......../proj.ios_mac/ios/AppController.mm:101:126: Cannot initialize a parameter of type 'id<ChartboostDelegate>' with an lvalue of type 'AppController *'