Compiler Error with LLVM 5.1 "Deprecated isa"

Mic*_*nzo 3 json llvm ios jsonkit

I am getting compiler errors with libJSONKit and in JSONKit.m. The errors are thrown with this: "Assignment to Objective-C's isa is deprecated in favor of object_setClass()".
There is also a secondary error: "Direct access to Objective-C's isa is deprecated in favor of object_getClass()".

Any advice on workarounds or solutions?

tro*_*foe 8

Simply follow the advice in the error message:

Change:

object->isa  = SomeClass;
Run Code Online (Sandbox Code Playgroud)

to:

object_setClass(object, SomeClass);
Run Code Online (Sandbox Code Playgroud)