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

后端 未结 22 2183
盖世英雄少女心
盖世英雄少女心 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 12:12

    I found that with the New Swift Build System and Parallelize Build turned on the scheme I would get errors like in this question. The solution was to link to frameworks that had been imported in the swift source files. (I think previously the app would build because it just happened that the frameworks were linked to something built previously in the serial build queue).

    I wrote a script to go through all the imports in all the targets in a workspace and make sure that their frameworks have been linked to in that target.

    https://github.com/Jon889/SwiftImportChecker

提交回复
热议问题