在同时包含Objective-C和Swift代码的自定义框架中,Swift编译器将引发以下错误:
[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'
Always Search User Paths
为Framework目标启用设置时,将发生这种情况。
将其设置为No
将解决该错误。
恕我直言,这是Swift编译器中的错误,我已经向Apple提出了警告。
参见rdar:// 21038443
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句