1
即时通讯将MMWormhole模块导入我的Apple WatchKit应用程序(在swift中)。由于我在建设迅速应用,我需要一个桥接报公元前MMWormhole模块中的目标下将编码我的问题是,即使我有以下,我还是收到MMWormhole问题:在科尔多瓦/ WatchKit应用程序导入MMWormhole
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import "MMWormhole.h"
#endif /* Bridging_Header_h */
的我收到的错误是没有这样的模块'MMWormhole'。触发此错误的代码如下:
import WatchKit
import Foundation
import MMWormhole
import MMWormholeSession
class SyncController:WKInterfaceController {
@IBOutlet var logo: WKInterfaceImage!
@IBOutlet var loadingText: WKInterfaceLabel!
let watchConnectivityListeningWormhole = MMWormholeSession.sharedListeningSession();
}
请帮我理解我可能会做错什么。
而且,我已经确定了我的苹果手表扩展修改斯威夫特编译器 - 一般包括:
Install Object-C Compatibility Header=yes
Objective-C Bridging Header=<src_in_watchExtension_project>