我把项目中的所有内容都改成了9.0,但我在很多播客中都犯了同样的错误.

我试着做了很多不同的事情,但都没有奏效.有人知道我怎么才能解决这个问题吗?

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.0.99. (in target 'gRPC-C++-gRPCCertificates-Cpp' 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.0.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.0.99. (in target 'FirebaseAuth' 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.0.99. (in target 'GoogleUtilities' 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.0.99. (in target 'vibration' 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.0.99. (in target 'nanopb' 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.0.99. (in target 'BoringSSL-GRPC' 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.0.99. (in target 'gRPC-Core' 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.0.99. (in target 'gRPC-C++' from project 'Pods')

为设备生成时遇到错误.

推荐答案

我用这个代码来解决它,谢谢!

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
    end
  end
end

Ios相关问答推荐

如何在进行滑动删除操作时保持自定义视图背景静态

在SwiftData中从@ Query创建可排序、有序和分组的数据

Firebase SDK 10+—无法安装软件包

如何创建自定义组件来接受(和传递)所有可能的Textfield参数?

阿拉伯文变音符号(Harakat)在文本对齐的UILabel中未对齐

当S没有身体时该如何处理

如何在SwiftUI中为带有CornerRadius的矩形创建下边框?

SwiftUI标题/标题文本背景 colored颜色 屏幕宽度

在flutter中使用flatter_screenutil这样的软件包的目的是什么?

将 Riverpod 从 StateNotifier 修复为 NotifierProvider 以及应用程序生命周期监控

不可发送类型 '[String : Any]?'在调用非隔离实例方法 XXX 时退出主参与者隔离上下文不能跨越参与者边界

从iOS键盘输入时Flutter TextField输入消失

SwiftUI:如何用拇指移动滑块值

搜索在 ios xamarin.forms 中不起作用

如何使用 sendAsynchronousRequest:queue:completionHandler:

水平滚动 UICollectionView 时对齐单元格的中心

核心数据 - 无法在路径加载优化模型

iOS:如何从 URL 调试新启动应用程序

如何防止 iOS 设备上的显示屏变暗和关闭?

检测应用程序何时进入我的视图背景的最佳方法是什么?