Flutter Firebase 存储 一行中的连续语句必须用 ';' 分隔

问题描述 投票:0回答:1

在我的 flutter projcet 中,Android 应用程序运行良好,而 iOS 构建在构建时出现以下问题。

enter image description here

iOS开发目标定为13。

这是我的 pubspec.yaml 文件

name: estejaba_flutter
description: "A new Flutter project."

publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
  sdk: ^3.5.0

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.8
  get: ^4.6.6
  permission_handler: ^11.3.1
  intl: ^0.19.0
  cached_network_image: ^3.4.1
  flutter_localization: ^0.2.2
  http: ^1.2.2
  image_picker: ^1.1.2
  firebase_core: ^3.4.1
  firebase_storage: ^12.3.0
  firebase_messaging: ^15.1.1
  shared_preferences: ^2.3.2
  path_provider: ^2.1.4
  syncfusion_flutter_pdfviewer: ^27.1.48

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^4.0.0

flutter:
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/
    - assets/images/2x/
    - assets/images/3x/
    - assets/data.json
    - assets/lang/en_US.json
    - assets/lang/ar_AE.json
  fonts:
    - family: Sora
      fonts:
        - asset: assets/fonts/Sora-Medium.ttf
          weight: 400
        - asset: assets/fonts/Sora-Medium.ttf
          weight: 500
        - asset: assets/fonts/Sora-Medium.ttf
          weight: 600
        - asset: assets/fonts/Sora-Medium.ttf
          weight: 700

Pod 安装日志

Updating local specs repositories
Analyzing dependencies
firebase_core: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
firebase_storage: Using Firebase SDK version '11.0.0' defined in 'firebase_core'
Downloading dependencies
Installing Firebase (11.0.0)
Installing FirebaseAppCheckInterop (11.2.0)
Installing FirebaseAuthInterop (11.2.0)
Installing FirebaseCore (11.0.0)
Installing FirebaseCoreExtension (11.2.0)
Installing FirebaseCoreInternal (11.2.0)
Installing FirebaseInstallations (11.2.0)
Installing FirebaseMessaging (11.0.0)
Installing FirebaseStorage (11.0.0)
Installing Flutter (1.0.0)
Installing GTMSessionFetcher (3.5.0)
Installing GoogleDataTransport (10.1.0)
Installing GoogleUtilities (8.0.2)
Installing PromisesObjC (2.4.0)
Installing device_info_plus (0.0.1)
Installing firebase_core (3.5.0)
Installing firebase_messaging (15.1.2)
Installing firebase_storage (12.3.1)
Installing flutter_localization (0.0.1)
Installing image_picker_ios (0.0.1)
Installing nanopb (3.30910.0)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.3.0)
Installing shared_preferences_foundation (0.0.1)
Installing sqflite (0.0.3)
Installing syncfusion_flutter_pdfviewer (0.0.1)
Installing url_launcher_ios (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 13 dependencies from the Podfile and 27 total pods installed.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
ios swift flutter firebase
1个回答
0
投票

看来您使用的 Xcode 版本对于编写的 FirebaseStorage 代码来说太旧了。

您发布的代码假设它是使用 Swift 5.9 编译的。

© www.soinside.com 2019 - 2024. All rights reserved.