首页 > 移动平台 > 详细

xcode 一些三方库版本警告 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.2.99.

时间:2020-11-23 17:02:01      阅读:991      评论:0      收藏:0      [点我收藏+]

 

1. 三方库警告:

Showing All Messages

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.2.99.

 

技术分享图片

 

 

 

解决方法: Podfile添加代码

我这里的警告 9.0 to 14.2.99, 那就添加9.0 的最小版本

如果是 8.0 to 13.0, 那么最小版本就是 8.0

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        if config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET‘].to_f < 9.0
          config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET‘] = ‘9.0‘
        end
      end
    end
  end

  

 

参考链接:

ios 警告:The iOS deployment target is set to x.x, but the range of supported deployment....消除

https://blog.csdn.net/sky_long_fly/article/details/89713186?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-6.not_use_machine_learn_pai&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFromBaidu-6.not_use_machine_learn_pai

xcode 一些三方库版本警告 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.2.99.

原文:https://www.cnblogs.com/qingzZ/p/14025149.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!