About Dyld:library not loaded

Source: Internet
Author: User

The following issues were encountered during the SDK access to Chivandi:

Dyld:library not loaded: @rpath/sdkframework.framework/sdkframework

Referenced from:/private/var/mobile/containers/bundle/application/107b34e6-f250-4511-9fa9-31526f8e7b84/ Testsdkui.app/testsdkui

Reason:image not found

Chivandi uses a custom dynamic package in IOS8. After you import sdkframework.framework in the link library of build setting, you cannot read the picture resources in the framework.

Previously, the framework used on iOS, in fact, is the static library packaged into the framework structure, picture resources packaged as bundles. The framework and bundle resources can be imported directly into the project. However, the dynamic package compiles the image resources directly into the framework, which needs to be configured in the imported project.

1. Online there is a way to say that the imported framework is set to optional.

Here is a description of the difference between required and optional:

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. For example, some libraries, such as Social.framework and Adsupport.framework, were introduced after iOS6, and some newer features were only available 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.

But even if it is set to optional, this error will be reported, indicating that it is not loaded because of unnecessary loading.


2. If you want to load correctly here, you need two settings:

-Load the framework containing the picture into bundle resource

-In the Build setting interface: Target-〉build phases-〉 Upper left corner + sign-〉new Copy files Phase then destination select Frameworks-〉 add Dynamic library under Copy files

This operation appears to require the runtime to load the dynamic library copy into the framework for use by the app (in doubt).

About Dyld:library not loaded

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.