ISA deprecated compatibility in Jsonkit

Source: Internet
Author: User
Tags deprecated

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.