What can I do if I my Chatkit object is unallocated?

When developing with our Swift SDK you might experience a crash with the error:

Fatal Error: Attempted to read an unowned reference but the object was already deallocated

To overcome this you must ensure you retain a strong reference to the ChatManager instance in your code while your app is using the SDK. If the ChatManager becomes unreferenced then there will be no root reference to prevent the SDK components being deallocated, which will result in crashes when they are used later.

Was this article helpful?
0 out of 0 found this helpful
Haven't found what you were looking for?
Submit a ticket