【问题标题】:WatchKit error - unable to find interface controller classWatchKit 错误 - 无法找到接口控制器类
【发布时间】:2016-01-18 11:02:35
【问题描述】:
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

【问题讨论】:

  • 您是否使用任何名为Idetifier 的界面控制器属性对情节提要进行了更改?

标签: ios watchkit


【解决方案1】:

请检查 WatchKit App 中的 Initial View Controller。 确保您为界面视图控制器使用了正确的标识符。

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

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

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

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

我正在使用代码来展示视图控制器。

    @IBAction func pushToEnterPinController() {

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

    }

【讨论】:

    【解决方案2】:

    对我来说,从上面的屏幕截图中更新自定义类下的模块是有效的。(我更改了我的应用名称)

    【讨论】:

      【解决方案3】:

      在 Interface Builder 中,在 InterfaceController 的自定义类部分设置正确的模块。它可能是空的。 Image illustration

      【讨论】:

        猜你喜欢
        • 2015-05-21
        • 2015-05-18
        • 1970-01-01
        • 2020-04-13
        • 1970-01-01
        • 2017-03-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多