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

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

    In Xcode 7 Beta, with Swift 2, it will also happen if your Framework Header is not declared as "Public"

    For instance, I had a Cocoa Touch Framework with a "Project" visibility for the header file, and the error "Umbrella Header ... not found" for all Swift files in my project, once I had the header "Public", the error went away

提交回复
热议问题