You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iOS Firebase Remote Config报Code=8003错误,求解决办法

解决Firebase Remote Config Error Code 8003的方案

这个错误本质是Firebase Remote Config依赖的Firebase Installations无法获取token导致的,以下是实测有效的解决步骤:

  • 核对基础配置
    确认GoogleService-Info.plist文件中的CLIENT_ID、REVERSED_CLIENT_ID、API_KEY字段完整且正确,同时App的Bundle ID必须和Firebase控制台中注册的完全一致(大小写敏感)。

  • 先排查Firebase Installations本身的问题
    先跳过Remote Config,手动调用Installations的token获取接口,确认这个环节是否正常:

    import FirebaseInstallations
    
    Installations.installations().authToken(completion: { token, error in
        if let error = error {
            print("Installations token error: \(error.localizedDescription)")
        } else {
            print("Success get installations token: \(token?.token ?? "")")
        }
    })
    

    如果这里也报错,就聚焦解决Installations的问题,比如重新下载GoogleService-Info.plist,或者检查App的签名配置。

  • 检查网络与权限

    • 确保App在Info.plist中配置了网络访问权限(NSAppTransportSecurity如果有自定义规则,要允许Firebase相关域名的访问);
    • 测试时关闭VPN、代理或防火墙,避免网络连接被拦截。
  • 更新Firebase SDK
    旧版本SDK可能存在已知bug,通过CocoaPods或Swift Package Manager将Firebase Remote Config和Firebase Installations更新到最新稳定版。

  • 清理缓存并重装
    删除真机/模拟器上的App,清理Xcode的Derived Data(File > Project Settings > Derived Data > Delete),然后重新构建安装。

  • 检查控制台配置
    确认Firebase控制台中已启用Remote Config服务,同时Google Cloud Console里的项目API密钥没有设置错误的IP或应用限制(比如误加了不存在的Bundle ID限制)。

内容的提问来源于stack exchange,提问作者Lucky Lu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 12:05:42