gpt4 book ai didi

ios - 使用 Flutter firebase_core 时应用程序崩溃 - 原因 : 'App name can only contain alphanumeric, hyphen (-), and underscore (_) characters'

转载 作者:行者123 更新时间:2023-11-29 05:23:21 39 4
gpt4 key购买 nike

在 iOS 上向我的 Flutter 应用添加对 Firebase 的支持时,出现以下异常:

Terminating app due to uncaught exception 'com.firebase.core', reason: 'App name can only contain alphanumeric, hyphen (-), and underscore (_) characters'

查看 flutterfire issue #928我想知道这是否与 iOS 包 ID 有关。所以我改变了它以符合上述规定(使用连字符而不是点)。但这并没有解决问题。

我还尝试调整iOS“ bundle 显示名称”。但这也没有帮助。

所以 - 我的问题是; “应用程序名称”是什么?我该如何更改它?

最佳答案

应用程序名称是指在 main.dart 中初始化 Firebase 时给出的 Firebase 应用程序名称。确保名称中没有空格 (' ') 或其他未经授权的字符。

await Firebase.initializeApp(
name: 'app-name',
options: DefaultFirebaseOptions.currentPlatform,
);

关于ios - 使用 Flutter firebase_core 时应用程序崩溃 - 原因 : 'App name can only contain alphanumeric, hyphen (-), and underscore (_) characters' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58447990/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com