Swift框架:没有找到Umbrella标题'[...]。h' [英] Swift Framework: Umbrella header '[...].h' not found

查看:354
本文介绍了Swift框架:没有找到Umbrella标题'[...]。h'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在包含 Objective-C Swift 代码的自定义框架中,Swift编译器会抛出以下错误:

In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error:

[build_path]/unextended-module.modulemap:2:19: error: umbrella header 'bugtest.h' not found
  umbrella header "bugtest.h"
                  ^
<unknown>:0: error: could not build Objective-C module 'bugtest'


推荐答案

当为Framework目标启用始终搜索用户路径设置时,会发生这种情况。

This will happen, when the Always Search User Paths setting is enabled for the Framework target.

将其设置为将解决该错误。

Setting it to No will resolve that error.

恕我直言是Swift编译器中的一个错误,我已经向Apple提交了雷达。

参见 rdar:// 21038443

IMHO this is a bug in the Swift Compiler and I have filed a radar with Apple.
See rdar://21038443

这篇关于Swift框架:没有找到Umbrella标题'[...]。h'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆