【发布时间】:2023-04-08 22:37:02
【问题描述】:
我已经在这个问题上工作了几天了。我无法让我的颤振应用程序在 Mac iOS 上运行。它在我的 Windows 机器上运行良好,但我读到如果我想将它放入 Apple Store,我需要在 iOS 上创建它。
我正在使用 Android Studio 创建应用程序,但是当我在 Mac iOS 上运行它时,我收到以下消息: 在调试模式下在 iPhone 12 Pro Max 上启动 lib/main.dart... 运行 Xcode 构建... Xcode 构建完成。 44.9s 等待 iPhone 12 Pro Max 报告其观点... 调试服务监听 ws://127.0.0.1:57221/5QGegVQYbv0=/ws 正在将文件同步到设备 iPhone 12 Pro Max... [VERBOSE-2:ui_dart_state.cc(177)] 未处理的异常:[core/not-initialized] Firebase 未正确初始化。您是否已将“GoogleService-Info.plist”文件添加到项目中?
View the iOS Installation documentation for more information: https://firebaseextended.github.io/flutterfire/docs/installation/ios
#0 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:86:9)
#1 Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:25)
#2 main (package:tonnah/main.dart:19:18)
#3 _runMainZoned.. (dart:ui/hooks.dart:231:25)
#4 _rootRun (dart:async/zone.dart:1190:13)
#5 _CustomZone.run (dart:async/zone.dart:1093:19)
#6 _runZoned (dart:async/zone.dart:1630:10)
#7 runZonedGuarded (dart:async/zone.dart:1618:12)
#8 _runMainZoned. (dart:ui/hooks.dart:223:5)
#9 _startIsolate.<…>
...然后它停止了。我已将 GoogleService-info.plist 文件添加到项目根目录中。我已经在 iOS 目录中尝试过,但得到了相同的结果。
我愿意在我的 Mac 上找人陪我,让他们帮助我正确设置项目。
【问题讨论】:
-
看起来更像是 Firebase 问题,而不是颤振问题。计数器应用可以正常工作吗?
标签: ios android-studio flutter