iOS 移动应用程序在单击推送通知后崩溃并显示以下错误。当应用程序关闭时,Clevertap 推送通知正在观察崩溃。当移动应用程序处于后台或前台时,不会发生崩溃。该应用程序是使用 Mobilefirst V7.1 构建的,所有 Mobilefirst 库和方法都用于处理 iOS 应用程序上的推送通知。
我们试图从设备中提取日志并在应用程序崩溃之前获取日志。
2018-04-30 15:07:39.466141+0530 AppDev[1386:622734] [DEBUG] [WL_AFHTTPRequestOperationManagerWrapper_PACKAGE] -[WLAFHTTPRequestOperationManagerWrapper start] in WLAFHTTPRequestOperationManagerWrapper.m:356 :: Starting the request with URL https://wls.**.co.in:80/Dev/apps/services/api/AppDev/iphone/query
2018-04-30 15:07:40.337279+0530 AppDev[1386:619825] [FATAL] [WORKLIGHT] Uncaught Exception: *** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]
2018-04-30 15:07:40.355216+0530 AppDev[1386:619825] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(0x182653d38 0x181b68528 0x1825ecc44 0x18251cdbc 0x100574328 0x100573dcc 0x18302c4c4 0x1825fc99c 0x1825fc6c0 0x1825fbec0 0x1825f9aa8 0x18251a2d8 0x1843abf84 0x18bac7880 0x100477f4c 0x18203e56c)
libc++abi.dylib: terminating with uncaught exception of type NSException
我无法确定 Mobilefirst 库或 Clevertap 库是否存在问题。但日志清楚地表明问题出在 Mobilefirst 上。