【问题标题】:Flutter App is Crashing After InstallationFlutter App 安装后崩溃
【发布时间】:2020-07-22 13:21:58
【问题描述】:

我收到此错误... 无法解决这个问题。请帮忙 安装后应用刚刚崩溃。

我尝试过的:

  1. 从 xcode 添加了 Google-services.plist
  2. 在 AppDelegate.swift 中添加/删除 FirebaseApp.configure()
  3. 添加了 GMSServices.provideAPIKey()
flutter: getCurrentLocation
flutter: {app_name: , default_tax: null, default_currency: null, currency_right: false, enable_paypal: true, enable_stripe: true, mobile_language: en}
flutter: getCurrentLocation
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23c710bc +[NSException raise:format:] + 188
    3   location                            0x000000010aeee80c -[LocationPlugin requestPermission] + 460
    4   location                            0x000000010aeeddf9 -[LocationPlugin handleMethodCall:result:] + 2137
    5   Flutter                             0x0000000108bd6f32 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 104
    6   Flutter                             0x0000000108b65a4e _ZNK7flutter21PlatformMessageRouter21HandlePlatformMess<…>
Lost connection to device.```



I'm using this source code ( https://codecanyon.net/item/multi-restaurants-flutter-php-laravel-admin-panel/24878940 )

【问题讨论】:

    标签: xcode firebase flutter flutter-ios


    【解决方案1】:

    第2步和第3步可以跳过,

    请务必将应用 ID 注册到 Firebase。将 Google-Services.plist 复制到 ios/Runner 并拖到 xcode 以获取注册文件。

    并在终端中运行 flutter clean 以清除构建失败。

    【讨论】:

      猜你喜欢
      • 2019-04-27
      • 1970-01-01
      • 1970-01-01
      • 2021-01-06
      • 1970-01-01
      • 2020-01-31
      • 2018-06-11
      • 1970-01-01
      • 2019-08-15
      相关资源
      最近更新 更多