不能與雨燕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