我在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
扩展使桥接头工作?
谢谢!
答案 0 :(得分:3)
桥接标头不得包含在Compiled Sources
部分中。通常,不应将标头添加到Compiled Sources
。所以,删除它,它应该工作。