JSONKit icon indicating copy to clipboard operation
JSONKit copied to clipboard

Deprecation: array->isa = _JKArrayClass; (and dictionary too)

Open jonnyijapan opened this issue 12 years ago • 3 comments

There are two deprecations.

OK to fix like this?

// http://stackoverflow.com/a/14590684/129202 object_setClass(array, _JKArrayClass); // was deprecated: array->isa = _JKArrayClass;

// http://stackoverflow.com/a/14590684/129202 object_setClass(dictionary, _JKDictionaryClass); // was deprecated: dictionary->isa = _JKDictionaryClass;

jonnyijapan avatar Apr 21 '13 05:04 jonnyijapan

+1, works for me

richsage avatar Feb 12 '15 15:02 richsage

it worked for me also

susoooo avatar Jul 07 '15 12:07 susoooo

You can configure

Pods-> targets(JSONKit ) -> Build Settings-> Apple LLVM 6.1 - Warnings - Objective C -> Direct usage of 'isa' to NO.

All compiling errors disapear. It's a temporarily quickly soluton.

dehengxu avatar Sep 05 '15 07:09 dehengxu