PubNub Swift中的SEGV_MAPERR错误

时间:2015-10-26 18:48:01

标签: ios swift segmentation-fault pubnub

以下代码抛出了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
                })
            }
        })

0 个答案:

没有答案