iOS development. Framework of optional (weak reference) and required (strong reference) differences, there are errors in the Library not found ...

Source: Internet
Author: User

Http://www.cnblogs.com/wanyakun/p/3494323.html

The framework of a strong reference (Required) is bound to be loaded into memory, but the framework of the weak reference (Optional) is loaded into memory only when it is needed, which saves a lot of time when it is initially loaded for the larger framework.

To explain briefly, some libraries, such as Social.framework and Adsupport.framework, were introduced after iOS6, and some newer features are available only on ios6+. When you add a framework to your project, they are strongly referenced by default (Required), however, When you finally configure the program to run the 5.0 device, you will find that it can not pass the most user load, because these libraries are not supported by iOS5.0, we need to change these library references to optional.

Second, if you have met this error: Duld:library not found ...... ..... Indicates that you should not have a strong reference to exist, and this error report will indicate which libraries require weak references.

Divider Line//////

Coreaudiokit is not a compatible with the IOS Simulator. Run it on a device, and it should build just fine

A few days ago in the processing of the Mango advertising library, there is a coreaudiokit.framework. This is iOS8 new additions, so also set to optional, otherwise, in 7 will crash

iOS development. Framework of optional (weak reference) and required (strong reference) differences, there are errors in the Library not found ...

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.