Bug Description:
Direct access to Objective-c's Isa is deprecated in favor of Object_setclass () and Object_getclass ()
Processing method:in Target's build settings, change the build activearchitecture only to Yes
Processing results: Running successfully
Other methods:
1. Change the Code
Replace the Array->isa =_jkarrayclass with object_setclass (array,_jkarrayclass); Dictionary->isa =_jkdictionaryclass; Replace with Object_setclass (Dictionary,_jkdictionaryclass);
2. Other online descriptions
Xcode upgrade 4.6 references a static library. A error ld:file ... not contain a (n) armv7s slice:xxx.afor architecture armv7s
Since the iphone 5 A6 processor uses the new armv7s architecture, XCode4.6 uses the schema by default when creating a new project, and when compiling a third-party static library, it prompts "Ld:file ... not Containa (n) armv7s slice: XXX.A for Architecture armv7s "error.
Therefore, before the third-party class library does not have the SDK to be compatible with the ARMV7S schema update, we can take the following approach to solve the problem:
Method one. Upgrade involves the. A file compatible armv7s
Method Two. In Target's build settings, change the build activearchitecture only to Yes
Method Three. Change architectures's $ (archs_standard_32_bit) to ARMv7 in buildsetting of Xcode 4.5
So if it is an open source library, it is best to include the source code directly into the project so that there is no such problem.
ISA deprecated compatibility in Jsonkit