Note that there are some explanatory texts on larger screens.

plurals
  1. POSDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag IOS
    primarykey
    data
    text
    <p>I am trying to use SDWebImage in an IOS project.</p> <p>I am following these instructions from their github:</p> <pre><code>import the project as a static library. Add the SDWebImage project to your project Download and unzip the last version of the framework from the download page Right-click on the project navigator and select "Add Files to "Your Project": In the dialog, select SDWebImage.framework: Check the "Copy items into destination group's folder (if needed)" checkbox Add dependencies In you application project app’s target settings, find the "Build Phases" section and open the "Link Binary With Libraries" block: Click the "+" button again and select the "ImageIO.framework", this is needed by the progressive download feature: Add Linker Flag Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linker Flags" setting and add the "-ObjC" flag: Import headers in your source files In the source files where you need to use the library, import the header file: #import &lt;SDWebImage/UIImageView+WebCache.h&gt; </code></pre> <p>But I am getting this error:</p> <pre><code>SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc </code></pre> <p>I have tried to search for header search paths that some other answers say and I get these results:</p> <pre><code>Always search user paths -No Header search paths User header search paths </code></pre> <p>Must I set a value there? Or should I do anything else?</p> <p>Another thing that i noticed in their demo is that: in their demo, in the frameworks folder they have imported the .xcodeproject of sdwebimageview and I have imported sdwebimageview.framework as the instructions say in the github.</p> <p>Thanks!</p> <p>Edit: my project is non-Arc.</p> <p>I tried changing the <code>other Linker flags from -ObjC to fobjc-arc</code> but I still get the same error.</p> <p>1)was that correct or should I change something else? 2) if I change my project from non-arc to arc what should I change? I only want to use that library so I prefer not change it.</p> <p>In the .h file os SDWebImage it says:</p> <pre><code>#if !__has_feature(objc_arc) #error SDWebImage is ARC only. Either turn on ARC for the project or use -fobjc-arc flag #endif </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload