Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the

195 阅读1分钟

错误提示:

Simulator 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 'url_launcher' from project 'Pods')

解决方法

post_install do |installer| 
    installer.pods_project.targets.each do |target| 
      target.build_configurations.each do |config| 
        config.build_settings['ENABLE_BITCODE'] = 'NO'
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0' 
      end 
    end 
  end