Today I updated Cocoapods to version 1.0.1 and received a bunch of errors right away. At first, the compiler could not find the .h files used in the PODs. As a result, I corrected the paths in the Build Settings of my project and the problem disappeared, but a new one immediately appeared:

{PROJECT} /Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginButton.h:21:9: Include the non-modular header inside framework module 'FBSDKLoginKit.FBSDKLoginButton'

enter image description here

after which I went to storm google.com

found that the problem could be in the build settings and corrected them

enter image description here

included and cleaned the script in podfile

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 

rolled back the version of cocoapods to the old

But none of this helped me.

What does this error mean and how can it be solved?

    1 answer 1

    Corrected so:

    There were three FBSDKs in PODs - CoreKit, LoginKit, ShareKit

    In ALL files in which the above described error occurred, replace the imports in this way:

    If the file is included in the framework - then changed

     #import <Module/Header.h> 

    on

     #import "Header.h" 

    If the file is not included in the framework

     #import <Module/Header.h> 

    on

      @import Module;