5

I get these errors

enter image description here

Here is the pods that are installed

enter image description here

My Podfile is :

platform :ios, “8.0”

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

target “” do
pod 'SVProgressHUD'
pod 'TWMessageBarManager'
pod 'QMServices'
pod 'Fabric'
pod 'Crashlytics'
end

I use xcode 7.3.1 and Facebook SDK 4.11 (copied in project folder)

enter image description here

fefe

Any one knows how to fix this ?

UPDATE: As i can understand, I have Bolts installed in Pods and i cannot use use_framworks! in Pods because one of the library in pods is not a dynamic framework, so when i integrate FBSDKCore and Login frameworks, it tries to use Bolts in Pods but it gives non-modular error because Bolts in pods does not have modulemap file.

Utku Dalmaz
  • 9,780
  • 28
  • 90
  • 130

4 Answers4

3

Try going Build Settings under "Target" and set "Allow Non-modular Includes in Framework Modules" to YES. enter image description here See for example this issue on Github, where AFNetworking fixed the same problem: https://github.com/AFNetworking/AFNetworking/issues/2205

pkc456
  • 8,350
  • 38
  • 53
  • 109
2

I think the better solution would be to integrate FacebookSDK via Cocoapods.

Just remove your manual integration, add pod 'FBSDKCoreKit', '~> 4.11' in your PodFile and do pod install.

Community
  • 1
  • 1
Julien Quere
  • 2,407
  • 16
  • 21
2

I fixed this by just removing import FBSDKCorekit line and installing it via CocoaPods then everything works fine.

Utku Dalmaz
  • 9,780
  • 28
  • 90
  • 130
1

Integrate FacebookSDK using podfile. After integration remove the files which you directly imported in your project. Use of podfile is more preferable instead of Direct implementation . you can get simple updates by just pod update not to download it manually. So it is best to use pod to implement Any Framework.

Dhruv Khatri
  • 803
  • 6
  • 15