xcode - Flutter App 安装后崩溃
问题描述
我收到此错误...无法解决此问题。请帮助应用程序安装后刚刚崩溃。
我试过的:
- 从 xcode 添加了 Google-services.plist
- 在 AppDelegate.swift 中添加/移除 FirebaseApp.configure()
- 添加了 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 )
解决方案
第 2 步和第 3 步可以跳过,
请确保将应用 ID 注册到 Firebase。将 Google-Services.plist 复制到 ios/Runner 并拖动到 xcode 以获取注册文件。
并在终端中运行flutter clean以清除构建失败。
推荐阅读
- postgresql - postgresql 唯一约束允许重复
- c++ - 是否可以在具有不同返回类型的不同类中拥有类似的成员?
- java - 自动更新新插入的房间实体中的主键
- java - 未选中的 ThrowingSupplier 用于 lambda
- flutter - 在 Flutter + Padding 中剪切文本效果
- reactjs - 使用反应 useEffect 钩子
- ios - 滚动时如何禁用大标题缩小
- c - CS50 pset3 我想调整此图像的大小,代码对某些人有效,对其他人无效?谁能告诉我有什么问题?
- swift - 是否可以像在 Netflix 应用程序中一样滚动视频时间线时制作预览图像?
- python-3.x - 如何解决 Listbox.curselection()、tkinter、Python 中的“坏列表框索引”问题?