在 Mac M1 芯片上为 Flutter 项目更新 PodFile

问题描述

我正在尝试在 Mac(M1 硅芯片)上运行 Flutter 项目。同一个项目在 linux 机器上运行良好。但是,在 Mac 上我不断收到此错误,我尝试了多种方法但仍然没有运气。如果这里有人知道如何解决这个问题会很有帮助。

 warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'UMDevice' from project 'Pods')
 warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'FirebaseDatabase' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'FirebaseAuth' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'UMAPM' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'FirebaseAnalytics' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'Firebase' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'UMCCommon' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'GoogleAppMeasurement' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'UMCAnalytics' from project 'Pods')
    warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0,but the range of supported deployment target versions is 9.0 to 14.3.99. (in target
    'Flutter' from project 'Pods'

我已经取消注释并更改了 Podfile 上的版本,并且还增加了 Xcode 上的版本,但仍然没有运气。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)