在我的WatchKit扩展中,我收到了以下警告和错误:
Warning: no rule to process file 'App-Bridging-Header.h' of type sourcecode.c.h for architecture x86_64
/Users/janusz/Desktop/Repositories/RunnerAppWatch/Source/WormholeMessanger.swift:12:20: Use of unresolved identifier 'MMWormhole'

它还列在“编译源代码”一节中。
当我删除WatchKit扩展时,一切都很好,但是一旦我将它添加回来,我就会再次收到错误。因此,问题是:如何使桥接头与WatchKit扩展一起工作?谢谢!
发布于 2015-02-21 19:13:10
桥接标头不能包含在Compiled Sources部分中。通常,不应将头添加到Compiled Sources中。所以,去掉它,它就会起作用。
https://stackoverflow.com/questions/28642268
复制相似问题