更新Xcode后The iOS Simulator deployment target is set to x.x, but the range of supported deployment ...

问题:The iOS Simulator deployment target is set to x.x, but the range of supported deployment target versions for this platform is 8.0 to 12.0. (in target 'xxx')

解决办法:

更新xcode默认最低版本发生变化需要手动修改
image.png

同样修改pod中的所有targets都重新手动设置一下,支持到的最低版本


image.png

并不是添加下面这个就能解决的

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 < 8.0
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0'
     end
   end
  end
end

你可能感兴趣的:(更新Xcode后The iOS Simulator deployment target is set to x.x, but the range of supported deployment ...)