在完成Flutter 运行的Xcode构建后,我遇到了如下错误. 我不确定是什么原因,我想这是因为Fflight 3.10.0的升级.但不确定原因. 请帮我导游.


This will generate a JSON format file containing all messages that 
need to be translated.
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running Xcode build...                                                  
Xcode build done.                                           10.1s
ARC Semantic Issue (Xcode): No known class method for selector 'appleCredentialWithIDToken:rawNonce:fullName:'

/Users/paulinahernandez/.pub-cache/hosted/pub.dev/firebase_auth-4.6.0/ios/Classes/FLTFirebaseAuthPlugin.m:592:26


Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.

Podfile


# Uncomment this line to define a global platform for your project
platform :ios, '14.0'
$FirebaseSDKVersion = '10.3.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_Podfile_setup

target 'Runner' do
  use_frameworks!
  use_modular_headers!
  #pod 'MLKitVision', :podspec => 'MLKitVision.podspec.json'
  #pod 'MLKitCommon', :podspec => 'MLKitCommon.podspec.json'
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.3.0'
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

Pubspec.yaml


flutter:
    sdk: flutter
  flutter_localizations: 
    sdk: flutter
  intl: ^0.17.0 

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  carousel_slider: ^4.1.1 
  extended_image: ^6.3.1
  http: ^0.13.5
  fluttertoast: ^8.0.9
  shared_preferences: ^2.0.15
  mvc_pattern: ^8.12.0
  cloud_firestore: ^4.0.2
  mobile_scanner: ^3.2.0
  flutter_slider_drawer: ^2.1.1
  pretty_qr_code: ^2.0.2
  firebase_auth: ^4.1.0
  google_sign_in: ^5.4.2
  carousel_indicator: ^1.0.6
  time_elapsed: ^0.2.6
  url_launcher: ^6.1.6
  firebase_dynamic_links: ^5.2.0
  pull_to_refresh: ^2.0.0
  custom_refresh_indicator: ^2.0.1
  liquid_pull_to_refresh: ^3.0.1
  audioplayers: ^3.0.1
  firebase: ^9.0.3
  photo_view: ^0.14.0
  flutter_html: ^3.0.0-alpha.6
  provider: ^6.0.4
  flutter_widget_from_html: ^0.10.0
  animated_check: ^1.0.5
  google_translator: ^1.0.0
  flutter_translate: ^4.0.3
  cloud_functions: ^4.0.6
  firebase_core: ^2.4.0
  firebase_app_check: ^0.1.2+1
  font_awesome_flutter: ^10.3.0
  flutter_app_badger: ^1.5.0
  firebase_messaging: ^14.2.1
  badges: ^3.0.2
  firebase_crashlytics: ^3.0.4
  geolocator: ^8.2.0
  geocoding: ^2.0.4
  geoflutterfire2: ^2.3.14
  socket_io_client: ^2.0.1
  internet_file: ^1.2.0
  pdfx: ^2.3.0
  google_maps_flutter: ^2.2.6

dependency_overrides:
  intl: 0.18.0
dev_dependencies:
  flutter_test:
    sdk: flutter

I tried many methods including Podfile change and package upgrade, but it couldn't help me.

推荐答案

我遇到了同样的问题,并try 在Podfile中更改以下内容:

$FirebaseSDKVersion = '10.9.0'

然后跑pod repo updatepod update;这对我很管用.

Flutter相关问答推荐

如何在应用栏中将列置于中心

Flutter 导致底部溢出

Android Emulator冻结,但在调整窗口大小时解冻

所需引用Firebase处不存在任何对象

如何知道当前屏幕是否处于抖动状态?

我想创建一个可滚动的堆叠列表项,每个项都朝向屏幕

在Dart中使用Riverpod代码生成时出现问题(addListener)

如何使listview.builder在筛选列表后实时更新

如果其他Provider 的帐户已存在,如何阻止用户登录?

PreferredSizeWidget类不能用作混合,因为它既不是混合类也不是混合

如何在android中 Select 任何文件/文件路径 - Flutter

将状态维护到 asyncNotifier

Flutter - 我需要显示文本,但应用程序不需要

Flutter - 展开图标无法正常工作

Flutter 动保存新的变量值

如何从另一个页面访问 Firebase 值?

Listview 如何转到下一行/新行?

SfCircularChart 周围的额外间距

函数中的变量在 Dart 中应该有什么关键字?

如何使用 Navigator 2.0 导航到任何页面?