首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >iOS部署目标'IPHONEOS_DEPLOYMENT_TARGET‘设置为8.0,如何更改最低IOS部署目标

iOS部署目标'IPHONEOS_DEPLOYMENT_TARGET‘设置为8.0,如何更改最低IOS部署目标
EN

Stack Overflow用户
提问于 2020-09-19 20:27:55
回答 17查看 107.9K关注 0票数 160

在这个项目中,我把所有的东西都改成了9.0,但是我在很多豆荚中都有同样的错误。

我试过做很多不同的事情,但都没有效果。有人知道我怎么解决这个问题吗?

代码语言:javascript
代码运行次数: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')

在为设备生成时遇到错误。

EN

回答 17

Stack Overflow用户

回答已采纳

发布于 2020-09-25 22:50:09

我用这个代码来解决这个问题,谢谢!在PodFile的末尾

代码语言:javascript
代码运行次数:0
运行
复制
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
票数 76
EN

Stack Overflow用户

发布于 2020-09-26 09:07:26

对我起作用的是@raffaelli-l和@的组合。

确保您执行以下操作:

  • MinimumOSVersion设置为ios/Flutter/AppFrameworkInfo.plist中的9.0
  • 确保取消注释platform :ios, '9.0'中的ios/Podfile
  • 确保ios/Podfile包含以下post安装脚本:
代码语言:javascript
代码运行次数:0
运行
复制
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        flutter_additional_ios_build_settings(target)
        target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
        end
      end
    end

在进行生产构建时,以下例程对我有用:

代码语言:javascript
代码运行次数:0
运行
复制
    flutter clean \
        && rm ios/Podfile.lock pubspec.lock \
        && rm -rf ios/Pods ios/Runner.xcworkspace \
        && flutter build ios --build-name=1.0.0 --build-number=1 --release --dart-define=MY_APP_ENV=prod
票数 208
EN

Stack Overflow用户

发布于 2020-11-05 14:28:50

转到Pods,对于您使用的每个框架,更改iOS版本,如我的屏幕截图所示

票数 19
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63973136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档