Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios swift与objective-c在watchkit扩展中的混合_Ios_Objective C_Swift_Watchkit_Ios Extensions - Fatal编程技术网

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

桥接头不能包含在
编译源代码部分中。通常,不应将标题添加到
编译源中。所以,去掉它,它应该会工作