Ios swift与objective-c在watchkit扩展中的混合
在我的Ios swift与objective-c在watchkit扩展中的混合,ios,objective-c,swift,watchkit,ios-extensions,Ios,Objective C,Swift,Watchkit,Ios Extensions,在我的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 '
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
扩展一起工作?
谢谢 桥接头不能包含在
编译源代码部分中。通常,不应将标题添加到编译源中。所以,去掉它,它应该会工作