---
source_url: https://www.pubnub.com/docs/sdks/cocoa-objective-c/troubleshooting
title: Troubleshooting Cocoa Objective-C SDK
updated_at: 2026-06-25T17:04:14.551Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# Troubleshooting Cocoa Objective-C SDK

In addition to enabling PubNub-specific logging as described below, you can gather crash reports and device logs from the App Store, TestFlight, and directly from devices. For more information, refer to [this Apple document](https://developer.apple.com/documentation/xcode/diagnosing_issues_using_crash_reports_and_device_logs/acquiring_crash_reports_and_diagnostic_logs). You'll want to [add identifiable symbol names](https://developer.apple.com/documentation/xcode/diagnosing_issues_using_crash_reports_and_device_logs/adding_identifiable_symbol_names_to_a_crash_report) to the reports, as well. This is also called *symbolicating* the reports.

Use this code to enable logging:

```objectivec
self.client.logger.enabled = YES;
[self.client.logger setLogLevel:PNVerboseLogLevel];
```

:::warning Logging in pre-4.5.0 versions
To enable logging before SDK version 4.5.0. You can use this: `[PNLog enabled:YES];`
:::

## How to find the version of your iOS SDK

To find your exact version, do one of the following:

* In your Xcode project, navigate to PubNub > Misc > PNConstants.h
* Or, to access it through code: 1NSString *version = [PubNub information].version;

## Sending logs to support

Use a tool such as `iExplorer` or `Devices` (in menu bar, `APPNAME/Documents`) in Xcode to grab the logs from the `APPNAME/Documents` directory on your device, and include them in your support ticket.