iOS应用程序在呈现多个Admob中介的间隙时崩溃

iOS应用程序在呈现多个Admob中介的间隙时崩溃,ios,xcode,admob,interstitial,mobile-ad-mediation,Ios,Xcode,Admob,Interstitial,Mobile Ad Mediation,我已经在iOS应用程序中实现了Admob。横幅、奖励视频和中介间隙(Admob、Unity和Chartboost)。我唯一的问题是,应用程序总是在出现3-4条间隙广告后崩溃。调试器显示以下消息:来自调试器的消息:由于内存问题而终止 我百分之百肯定这次事故是由间隙引起的。我已经测试完全没有广告,没有崩溃。而且只有横幅广告,没有崩溃 这是我用来实现和显示间隙广告的代码: @interface ViewController () @property(nonatomic, strong) GADInte

我已经在iOS应用程序中实现了Admob。横幅、奖励视频和中介间隙(Admob、Unity和Chartboost)。我唯一的问题是,应用程序总是在出现3-4条间隙广告后崩溃。调试器显示以下消息:
来自调试器的消息:由于内存问题而终止

我百分之百肯定这次事故是由间隙引起的。我已经测试完全没有广告,没有崩溃。而且只有横幅广告,没有崩溃

这是我用来实现和显示间隙广告的代码:

@interface ViewController ()
@property(nonatomic, strong) GADInterstitial *interstitial;
@end

- (void)viewDidLoad {
    [self loadInterstitial];
}

- (void)loadInterstitial {
    self.interstitial = [[GADInterstitial alloc] initWithAdUnitID:@"ca-app-pub-xxxxx/xxxxx"];
    self.interstitial.delegate = self;
    [self.interstitial loadRequest:[GADRequest request]];
}

- (void)interstitialDidDismissScreen:(GADInterstitial *)interstitial {
    [self loadInterstitial];
}

- (void)someMethod {
    if (self.interstitial.isReady) {
        [self.interstitial presentFromRootViewController:self];
    }
}

您是否尝试过更改中间调解配置以确定某个适配器是否是崩溃的根源?例如,一次关闭一个网络以查看崩溃是否解决?我想我找到了解决问题的方法。将Chartboost添加到我的AdMob中间活动时,我添加了错误的应用程序ID和应用程序签名。我不明白为什么这会导致内存问题并导致我的应用程序崩溃,但当我修复它时,内存问题消失了,应用程序没有再次崩溃。