When an iOS asynchronous image is used to load sdwebimage, file not found and symbol not found: _ objc_storestrong are displayed.

Source: Internet
Author: User

Today, I used IOS asynchronous image loading. I found the sdwebimage that everyone talked about on the Internet. I haven't done it for half a day by referring to some previous blogs, in fact, readme on GitHub has been clearly written, but I did not carefully read it.

Let me talk about the problem. First, I downloaded sdwebimage. Framework, dragged it to the project, and then:

# Import "uiimageview + webcache. H"

If the Import fails, the message "uiimageview + webcache. h file not found" is displayed"

Then, I can find various methods on the Internet to search the header path, which doesn't work. I will take a closer look at the results. The latest sdwebimage version needs to be imported instead of the above sentence. I need:

# Import <sdwebimage/uiimageview + webcache. h>

Then build, everything is OK.

Another problem is:

Symbol not found: _ objc_storestrong

This is because I referenced the arc sdwebimage in the no arc project. Change it to the following:Build settings-> Other linker
Add flags-Fobjc-Arc.

To use and download sdwebimage, go to: sdwebimage
For specific usage, see the latest readme.

Related Article

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.