Closed fleshgolem closed 9 years ago
This looks like a problem with the FB SDK itself to me.
Link to the Facebook bug report: https://developers.facebook.com/bugs/850078471740674/?search_id
+1 getting the same issue.
grrrrr.. so is there a temporary workaround for this thing? can't even open an issue on their github.........
Seems like FB could reproduce the issue with @Rawrcoon's bug report, so it's wait and see. Nothing we can do from the CocoaPods side at the moment.
Adding Bolts as an explicit dependency in the podspec did resolve the issue. Strangely the Bolts dependency must be BEFORE the dependencies on FBSDK in order to work properly.
Further explanation was provided by the Facebook team at the bug report thread i posted earlier.
That's great, thanks for the update @Rawrcoon!
If you are still getting errors after the dependency workaround, try to import Bolts ABOVE (important!) the FBSDKCoreKit
import Bolts
import FBSDKCoreKit
wow, that made no sense, but you have literally saved me.. thnx a lot man :grin:
@Rawrcoon it's doesn't work for me including Bolts. You have the flag CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES
set to YES
?
Yes, CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES is set to YES.
If you do have the explicit dependency and import Bolts above FBSDKCoreKit, my guess is that you have a different problem.
@Rawrcoon that's what I was missing, thought importing Bolts alone was sufficient. Thanks!
There seem to be some problems occuring, when using the new facebook-ios-sdk as a dependency in a pod and then including said Pod with with use_frameworks!
Example podspec:
Example Podfile:
This will build fine once. But after cleaning the Project and building again it will throw a "Include of non-modular header inside framework module"-Error in FBSDKAppLinkResolver.h
I found some issues with the facebook SDK but allegedly those have been resolved after version 4.0. So I'm left quite clueless now. I am also not sure if this problem even concerns CocoaPods at all or if it needs fixing from facebook. I would appreciate any help regarding this