不能与雨燕2.2,版本的Xcode 7.3(7D175)雨燕 “守卫让” 解包失败
请帮忙! 这是怎么回事?
EDIT1
let localPresenter = presenter
let localDataSource = dataSource
let configurator: ViewControllerConfigurator = { inputView in
let a = inputView as? ChatTableViewController
guard var chatListController = a else {
throw ApplicationErrors.ModuleConfigureError.WrongViewInput
}
localPresenter.view = chatListController
chatListController.presenter = localPresenter
chatListController.tableView.dataSource = localDataSource
}
EDIT2 此代码工作正常:
let localPresenter = presenter
let localDataSource = dataSource
let configurator: ViewControllerConfigurator = { inputView in
let a = inputView as? ChatTableViewController
if let chatListController = a {
localPresenter.view = chatListController
chatListController.presenter = localPresenter
chatListController.tableView.dataSource = localDataSource
} else {
throw ApplicationErrors.ModuleConfigureError.WrongViewInput
}
}
请还包括你的代码**作为文本**(使用[编辑]按钮)。 – Moritz
对不起,我无法创建一个简单的示例项目。 – adnako
@EricD谢谢,我知道,但问题不在于断点。我无法弄清楚为什么卫兵很好地解开变量,但它不能解开一个常量? – adnako