Adding a flag for Cocoa Pods users

Using the Parse framework and SDWebImage frameworks installed via Cocoa Pods gives the same error as described in the Alternatively section of the Add Linker Flag section in this Readme.
I found a solution here : http://www.deanmao.com/2012/12/31/linker-error-using-cocoapods/
This commit is contained in:
dulgan 2014-08-27 14:10:27 +02:00
parent 6dfec7ccd9
commit 249adae4f0
1 changed files with 5 additions and 1 deletions

View File

@ -254,11 +254,15 @@ Open the "Build Settings" tab, in the "Linking" section, locate the "Other Linke
![Other Linker Flags](http://dl.dropbox.com/u/123346/SDWebImage/10_other_linker_flags.jpg)
Alternatively, if this causes compilation problems with frameworks that extend optional libraries, such as Parse, RestKit or opencv2, instead of the -ObjC flag use:
```
-force_load SDWebImage.framework/Versions/Current/SDWebImage
```
If you're using Cocoa Pods and have any frameworks that extend optional libraries, such as Parsen RestKit or opencv2, instead of the -ObjC flag use:
```
-force_load $(TARGET_BUILD_DIR)/libPods.a
```
### Import headers in your source files
In the source files where you need to use the library, import the header file: