xCode EXC_算术(代码=EXC_1386_DIV,子代码=0x0)调试

xCode EXC_算术(代码=EXC_1386_DIV,子代码=0x0)调试,xcode,debugging,Xcode,Debugging,嗨,我的操作启动时出现此调试错误: 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_OV

嗨,我的操作启动时出现此调试错误:

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\u FREQUENCY\u CHARTBOOST\u GAME\u OVER==0

ADS\u FREQUENCY\u CHARTBOOST\u GAME\u OVER等于零吗?不等于1。为什么要进行mod 1?mod 1始终为零。您确定ADS\u频率\u图表增强\u游戏结束\u为整数吗?