1

在我的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扩展一起工作?谢谢!

4

1 回答 1

3

桥接头不得包含在该Compiled Sources部分中。通常,不应将标题添加到Compiled Sources. 因此,删除它,它应该可以工作。

于 2015-02-21T19:13:10.820 回答