5
今天我收到了Firebase Analytics的一個奇怪警告。它是:未找到Firebase根視圖控制器警告
<Warning> [Firebase/Analytics][I-ACS031011] Root view controller not found
我使用的基本上是刪除後,然後顯示狀態欄通知該帖子被刪除用戶的方法。這是我們想要刪除帖子時調用的方法。
HomeViewNetwork.deletePost(postBlock: self.postDataBlock, handler: {
AlertManager.showStatusRed(title: "Post deleted!")
})
而且我的顯示狀態的功能是:
class func showStatusRed(title: String) {
let statusMessage = MessageView.viewFromNib(layout: .StatusLine)
var config = SwiftMessages.defaultConfig
config.presentationContext = .window(windowLevel: UIWindowLevelStatusBar)
statusMessage.configureContent(body: title)
statusMessage.backgroundView.backgroundColor = UIColor(red:0.98, green:0.11, blue:0.35, alpha:1.00)
setUpStatusView(messageView: statusMessage)
statusSwiftMessages.show(config: config, view: statusMessage)
}
警告消失,如果我評論的AlertManager.showStatusRed方法。此外,我正在使用SwiftMessages作爲我的庫來顯示狀態欄通知。
我不確定爲什麼Firebase在Xcode沒有提供有關根視圖控制器的任何問題時給我這個警告。任何幫助表示讚賞。客觀-C僅項目
相關問題和Xcode 9 GM使用FirebaseCore 4.0.4(podfile.lock)遵守:Xcode 9 <Warning> [Firebase/Analytics][I-ACS031011] Root view controller not found
嘗試檢查配置你曾在這裏 –
使用我曾嘗試,但無法找到爲什麼會這樣的原因。也不知道爲什麼Firebase會在Xcode不這樣的時候提醒我。 – ndduong
同樣的問題在這裏。你找到出路了嗎? –