SelectiOSiOSCocoaiOS Swift SDK Troubleshooting Guide

This SDK has been replaced by a new PubNub Swift SDK written purely in Swift. Check it out here.
Use this code to enable logging:

self.client.logger.enabled = true
self.client.logger.setLogLevel(PNLogLevel.PNVerboseLogLevel.rawValue)
 
To enable logging before 4.5.0. You can use this: PNLog.enabled(true)
To find your exact version, it's a bit buried but you can check:
  • In your Xcode project, go to PubNub > Misc > PNConstants.h
  • OR, to access it through code:

let version = PubNub.information().version
Use a tool such as iExplorer or Devices (in menu bar, Window > Devices) in Xcode to grab the logs off the APPNAME/Documents directory on your device, and include them in your support ticket.