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.


 

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM