以下代码抛出了segv_maperr错误,问题是该错误仅显示在我的实时应用程序的splunk日志中。但我无法重现它。需要指导可能导致这种情况的原因?
PubNub.requestPushNotificationEnabledChannelsForDevicePushToken(dToken,
withCompletionHandlingBlock: { (channels, error) -> Void in
if let pnChannels = channels as? [PNChannel] {
if (!pnChannels.contains(self.myChannel))
{
PubNub.enablePushNotificationsOnChannel(self.myChannel,
withDevicePushToken: dToken, andCompletionHandlingBlock: { (array, error2) -> Void in
})
}
}
else
{
PubNub.enablePushNotificationsOnChannel(self.myChannel,
withDevicePushToken: dToken, andCompletionHandlingBlock: { (array, error2) -> Void in
})
}
})