Merge pull request #879 from dulgan/patch-1

Adding a flag for Cocoa Pods users
This commit is contained in:
Bogdan Poplauschi 2014-09-01 16:09:36 +03:00
commit 11125c4379
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: