Flutter flatter give me CompileSwift失败,退出代码为非零

Flutter flatter give me CompileSwift失败,退出代码为非零,flutter,dart,flutter2.0,Flutter,Dart,Flutter2.0,我已将颤振应用程序更新为颤振版本2.2.1•通道稳定,但当它在ios设备上运行颤振运行时,我发现以下错误,这是因为什么?我怎样才能修好它? 我在网上读到一些人有这些问题,错误在颤振更新后出现,但由于我必须使用最新版本的颤振,我必须找到一种方法来修复错误,我该如何修复 颤振运行时出错: Error output from Xcode build: ↳ objc[69849]: Class AMSupportURLConnectionDelegate is implemented in bo

我已将颤振应用程序更新为颤振版本2.2.1•通道稳定,但当它在ios设备上运行颤振运行时,我发现以下错误,这是因为什么?我怎样才能修好它? 我在网上读到一些人有这些问题,错误在颤振更新后出现,但由于我必须使用最新版本的颤振,我必须找到一种方法来修复错误,我该如何修复

颤振运行时出错:

Error output from Xcode build:
↳
    objc[69849]: Class AMSupportURLConnectionDelegate is implemented in both ??
    (0x1f9b08188) and ?? (0x1166cc2b8). One of the two will be used. Which one is
    undefined.
    objc[69849]: Class AMSupportURLSession is implemented in both ?? (0x1f9b081d8) and ??
    (0x1166cc308). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **

Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    Command CompileSwift failed with a nonzero exit code
    In file included from
    /Users/utente/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class
    es/SharedPreferencesPlugin.m:5:
    /Users/utente/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class
    es/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    In file included from
    /Users/utente/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class
    es/SharedPreferencesPlugin.m:5:
    /Users/utente/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class
    es/SharedPreferencesPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'shared_preferences' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'printing' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'mp3_meta_data' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'location' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'image_cropper' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'google_maps_flutter' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'flutter_local_notifications' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'barcode_scan' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'package_info' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'advance_pdf_viewer' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'flutter_image_media' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'sqflite' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'path_provider' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'image_picker' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'flutter_email_sender' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'TOCropViewController' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'MTBBarcodeScanner' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'FMDB' from project 'Pods')
    /Users/utente/Desktop/Progetti/Gitlab/appflutter/quote/ios/Pods/Pods.xcodeproj:
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to
    8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in
    target 'Flutter' from project 'Pods')
Xcode生成的错误输出: ↳ objc[69849]:AMSupportUrlConnectionLegate类在这两个版本中都实现了?? (0x1f9b08188)和??(0x1166cc2b8)。将使用其中一个。哪一个是 未定义。 objc[69849]:AMSupportURLSession类在这两种语言中都实现了??(0x1f9b081d8)和?? (0x1166cc308)。将使用其中一个。哪一个是未定义的。 **构建失败** 命令CompileSwift失败,退出代码为非零 命令CompileSwift失败,退出代码为非零 命令CompileSwift失败,退出代码为非零 在文件中包括从 /Users/utinte/.pub cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class es/SharedReferencesPlugin.m:5: /Users/utinte/.pub cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class es/SharedReferencesPlugin.h:5:9:致命错误:“未找到颤振/颤振.h”文件 #进口 ^~~~~~~~~~~~~~~~~~~ 生成1个错误。 在文件中包括从 /Users/utinte/.pub cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class es/SharedReferencesPlugin.m:5: /Users/utinte/.pub cache/hosted/pub.dartlang.org/shared_preferences-0.4.3/ios/Class es/SharedReferencesPlugin.h:5:9:致命错误:“未找到颤振/颤振.h”文件 #进口 ^~~~~~~~~~~~~~~~~~~ 生成1个错误。 注意:使用新的构建系统 注:并行构建目标 注:规划建造 注意:分析工作空间 注意:构建构建描述 注意:构建准备已完成 /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 项目“Pods”中的目标“共享_首选项”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 目标“打印”来自项目“Pods”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 目标为“Pods”项目中的“mp3元数据”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 项目“Pods”中的目标“位置”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 目标为项目“Pods”中的“图像裁剪器”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 目标是“Pods”项目中的“谷歌地图”和“颤振”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 来自项目“Pods”的目标“颤振\本地\通知”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 项目“Pods”中的目标“条形码扫描”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 项目“Pods”中的目标“包信息”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 目标为“Pods”项目中的“advance\u pdf\u viewer”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 项目“吊舱”中的目标“颤振图像媒体”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本范围为9.0到14.5.99。(在 项目“Pods”中的目标“sqflite”) /Users/Utene/Desktop/Progetti/Gitlab/AppFlatter/quote/ios/Pods/Pods.xcodeproj: 警告:iOS模拟器部署目标“IPHONEOS_部署_目标”设置为 8.0,但支持的部署目标版本的范围是