Xcode:LLVM 7.0:禁用警告"模块的Uader标头不包含标头"

amb*_*ght 11 xcode llvm compiler-warnings swift

为了让我的Objective-C框架在我的Swift可可触摸框架中成功链接,我不得不使用这种不合适的解决方法,这涉及将所有框架头文件作为公共头文件导入到项目中.

我完全不需要所有这些都出现在我的伞形标题中,所以我想以某种方式删除生成的一堆警告.("模块'Foo'的Umbrella标题不包含标题").我在构建设置中经历了LLVM警告设置,但找不到它.

rob*_*off 6

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).

Xcode构建设置