【发布时间】:2019-06-20 20:18:21
【问题描述】:
作为将代码库升级到 Swift5 的一部分,我在我的项目中更新了 Firebase pod。之后我开始收到如下警告。
isDeveloperModeEnabled已弃用:在开发过程中不再需要设置。有关更多详细信息,请参阅文档。
有人能解释一下解决这个问题的替代方法吗
remoteConfig = RemoteConfig.remoteConfig()
let conSettings = RemoteConfigSettings(developerModeEnabled: true)
if TargetBuild.isProd {
remoteConfig.configSettings = RemoteConfigSettings()
} else if settings.isDeveloperModeEnabled {
remoteConfig.configSettings = conSettings
} else {
print("Could not set config settings")
}
我需要解决上述代码的警告。这是一个现有的代码库。当我进行全局搜索时,我没有看到这个值被使用。有人请帮帮我
【问题讨论】:
标签: ios swift firebase firebase-remote-config