The current deployment target does not support automatic _ weak references

Source: Internet
Author: User
When downloading and running a demo, the following error occurs: "The current deployment target does not support automated _ weak references". Find the following method:

Xcode versions earlier than 4.2 do not support arc.

There are also requirements for the operating system: Mac OS X v10.6 or v10.7 (64-bit applications), ios4 or ios5. Note: Mac OS X v10.6 and ios4 do not support weak references (weak references: What is weak references ).

Xcode 4.2 provides a tool named "convert to objective-C automatic reference counting". Under the edit-> convert menu, you can automatically convert the old code using manual reference counting into new code using arc (for example, removing the call to retain and release ).

Or upgrade the system version. Project-> Info-> IOS deployment target


Because the demo uses arc, you only need to change it.DeploymentTarget version.

Reference: http://www.xuebuyuan.com/2037668.html


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.