vikzilla
vikzilla

Reputation: 4138

Include of non-modular header inside framework module error

Trying to integrate ParseLiveQuery cocoapod into my project, but when building I keep getting the error:

Include of non-modular header inside framework module error 'Bolt.BFCancellation'

enter image description here

I installed ParseLiveQuery (along with Parse) via cocoapods. Here's my podfile:

use_frameworks!

pod 'ParseLiveQuery'
pod 'Parse'

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

I have also set Allow Non-module Includes In Framework Modules to Yes in build settings, but still get this error.

Upvotes: 6

Views: 11863

Answers (2)

Vittal Pai
Vittal Pai

Reputation: 3553

I solved it removing Modules folder from the framework.

  • Browse to your framework location which is present in the App Project using finder

  • Go inside Test.framework folder (In the above case it will be ParseLiveQuery.framework) & Delete Modules folder.

  • Clean and Re Build the app, it will solve the problem.

Upvotes: 0

Nick
Nick

Reputation: 2903

Just ran into this myself. I added the header file to the Framework's umbrella header, and then added it to the Headers section as Public. (I'm adding Reachability lib)

enter image description here

So far it seems to be working for me without trouble.

Upvotes: 9

Related Questions