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

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

    In my case problem was caused by remove headers script in Build Phases

    function removeHeaders() {  
        find $BUILD_ROOT/...  -name '*.h' -exec rm -f {} \;  
    }  
    removeHeaders
    

    Deleting this script fixed the problem.

提交回复
热议问题