Xcode: LLVM 7.0: Disable warning “Umbrella header for module does not include header”

前端 未结 3 890
我在风中等你
我在风中等你 2021-02-07 14:38

In order for my Objective-C framework to link successfully in my Swift cocoa touch framework, I had to use this unpretty workaround, which involves importing all framework heade

3条回答
  •  迷失自我
    2021-02-07 15:09

    If you're getting this warning from a “Compile Swift source files” ▸ “Precompile bridging header” build step (also labeled PrecompileSwiftBridgingHeader), here's how you suppress it:

    1. Find the Build Settings for your project.
    2. Search for “Other Swift Flags”.
    3. Add -Xcc and -Wno-incomplete-umbrella to “Other Swift Flags” (in that order).

提交回复
热议问题