Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no umbrella header found for target, module map will not be generated

Tags:

xcode

ios

When I trying build CKCountdownButton as a framework in Xcode 6.3, it complains with

warning: no umbrella header found for target 'CKCountdownButton', module map will not be generated

Then when I import this framework in other project, it failed with No such module 'CKCountdownButton'

like image 298
Quanlong Avatar asked Jun 08 '15 08:06

Quanlong


People also ask

What is Modulemap?

The module map language describes the mapping from header files to the logical structure of modules. To enable support for using a library as a module, one must write a module. modulemap file for that library.


1 Answers

I found another solution, Xcode provides a way to specify umbrella header through Module Map File configuration.

snapshot

The contents of module.modulemap should be:

framework module Foo {     umbrella header "Bar.h"      header "other-header.h"      export *     module * { export * } } 
like image 153
Quanlong Avatar answered Oct 06 '22 03:10

Quanlong