Swift Framework: Umbrella header '[…].h' not found

后端 未结 22 2186
盖世英雄少女心
盖世英雄少女心 2020-12-07 11:49

In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error:

[build_pat         


        
22条回答
  •  死守一世寂寞
    2020-12-07 11:54

    There's 4 different ways this can happen, ignoring bugs in previous versions of Xcode

    • You don't have a umbrella header named $(TARGET_NAME).h in your project
    • You have a umbrella header, but it's not set as public. See arturgrigor's answer
    • DEFINES_MODULE is not set to YES
    • CLANG_ENABLE_MODULES is not set to YES

提交回复
热议问题