Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot build facebook ios SDK in Swift Project

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.

like image 887
Utku Dalmaz Avatar asked May 12 '16 15:05

Utku Dalmaz


1 Answers

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

like image 146
pkc456 Avatar answered Oct 01 '22 05:10

pkc456