From 249adae4f0b8394e2100979801869af9f9bdb960 Mon Sep 17 00:00:00 2001 From: dulgan Date: Wed, 27 Aug 2014 14:10:27 +0200 Subject: [PATCH] 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/ --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8aa5610b..2273e9ad 100644 --- a/README.md +++ b/README.md @@ -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: