I came across the same question, but Frank's answer didn't work for me. As mentioned in the message calling TARGET_LINK_LIBRARIES , the variable FRAMEWORK_SEARCH_PATHS is placed. In my case, it finds FacebookSDK.framework , but then generates linker errors for the rest of the included frameworks (e.g. UIKit, Foundation, etc.).
My solution was to simply copy FacebookSDK.framework to the Xcode framework folders. Keep in mind that you need to copy it to iPhoneOS and iPhoneSimulator if you create for the device and simulator. Currently, Xcode7 and SDK9.0 are located in the following folders:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/System/Library/Frameworks
Adding FacebookSDK.framework , as usual, works fine:
SET (OUR_FRAMEWORKS "-framework Foundation -framework UIKit -framework FacebookSDK ...")
Chico Aug 29 '14 at 8:08 2014-08-29 08:08
source share