我的行动开始时,我发现这个调试“错误”:
EXC_Arithmetic(code=EXC_1386_DIV,subcode=0x0)
我的代码如下:
// checking if an ad may be shown due to ads frequency for this ad network and this location
if (placementCountChartboostGameOver % ADS_FREQUENCY_CHARTBOOST_GAME_OVER == 0) {
mayShowChartboostAdAtLocation = YES;
if (cKLogEnabled) {
CKLog(@"App may show Chartboost Ad at Game Over because placement count is %li and ads frequency at this location is %li.", (long)placementCountChartboostGameOver, (long)ADS_FREQUENCY_CHARTBOOST_GAME_OVER);
}
}
我的调试“错误”从:placementCountChartboostGameOver % ADS_FREQUENCY_CHARTBOOST_GAME_OVER == 0