FBSDKCoreKit does not compile with XCode 7.3 + CocoaPods

My project uses the FBSDKCoreKit module (Facebook SDK) and it was installed using CocoaPods.

It was working in Xcode 7.2

But when I upgraded from XCode 7.2.1 to 7.3 the compilation of my current project failed. The message is:


../Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppLinkResolver.h:26:10: Include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver' ../Pods/ParseFacebookUtilsV4/ParseFacebookUtils/Internal/PFFacebookPrivateUtilities.h:16:9: Could not build module 'FBSDKCoreKit'


What is the difference between 7.2 and 7.3 versions that can be the reason of this error and how to solve it ?

I am having the exact same issue and tried all the tops of stack overflow and nothing worked.

i solved it by downgrading to 7.2.1

I resolved this by setting 'Allow Non-modular Includes In Framework Modules' to 'Yes' in the Pods project's settings. I already had this set to 'Yes' in my main app project but it only resolved when setting it in the 'Pods' project.

Same issue here, I fixed it with a post Cocoapods install hook.

Add this one in your podifle :


post_install do |installer|
  installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
    configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
  end
end


Regards

FBSDKCoreKit does not compile with XCode 7.3 + CocoaPods
 
 
Q