ios - WatchKit 错误 - 无法找到接口(interface) Controller 类

标签 ios watchkit

the app was working fine, I was doing some adjustment and suddenly it stopped loading. 
I launch the simulator and the storyboard doesn't start.
I get this error:

WatchKit error - unable to find interface controller class 
2016-01-18 11:56:30.019 ABWatch Extension[13593:122454] WatchKit error - unable to find interface controller class '_TtC17ABWatch_Extension23HomeInterfaceController' to instantiate
2016-01-18 11:56:30.027 ABWatch Extension[13593:122426] *********** ERROR -[SPRemoteInterface _interfaceControllerClientIDForControllerID:] clientIdentifier for interfaceControllerID:35160002 not found

最佳答案

请检查 WatchKit App 中的 Initial View Controller。
确保您为界面 View Controller 使用正确的标识符。

enter image description here

还要确保您没有结合分层和基于页面的界面样式。

我也面临同样的错误同样的问题。

我只是将 pushController 替换为 presentController。
如果您正在使用self.pushControllerWithName("EnterPin", context: nil)然后替换为

self.presentControllerWithName("EnterPin", context: nil)

我正在使用代码来呈现 View Controller 。
    @IBAction func pushToEnterPinController() {

         self.presentControllerWithName("EnterPin", context: nil)

    }

关于ios - WatchKit 错误 - 无法找到接口(interface) Controller 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34853116/

相关文章:

ios - Node 安装cordova/ionic/Foundation/Foundation.h未找到

iphone - 后台 iPhone 中的多个异步 HTTP 请求

ios - HandleWatchKitExtensionRequest 中的嵌套 PFQuery

ios - WatchKit 基本文本动画

ios - Watchkit 扩展 - 未找到匹配的配置文件

iphone - iPhone 的 webViewDidFinishLoad 会检测流式音频文件的播放结束吗

objective-c - 拆分大型 iOS View Controller ?

ios - 如何使用 Cyber​​ Source SDK iOS 添加金额?

ios - 应用程序图标未显示在 Apple Watch 应用程序中

ios - 使用 WatchKit,如何将标签放置在图像之上?