如何在.modulemap中递归添加多个头文件?

时间:2019-02-18 02:48:21

标签: clang cocoapods module-map

例如,此.modulemap有效:

let knownWords = ["quick", "brown", "lazy"];

let string = 'The quick brown fox jumped over the lazy dog.';

console.log('Original string:', string);

string = string.replace(new RegExp(knownWords.join("|"), "g"), function(match) {
  return `<mark>${match}</mark>`
})

console.log('Marked string: ', string);

但是这个没有:

framework module MySDK {
  umbrella header "MySDK-umbrella.h"
  header "inc/header1.h"
  header "inc/header2.h"
  header "inc/header3.h"
  ...

  export *
  module * { export * }
}

那么如何在.modulemap中递归添加多个头文件?

1 个答案:

答案 0 :(得分:0)

对于这种情况,我建议使用umbrella "Headers"而不是umbrella header "MySDK-umbrella.h"进行调查。

https://clang.llvm.org/docs/Modules.html#umbrella-directory-declaration