美文网首页iOS组件化&&二进制&&Cocoapods
Xcode: Showing All Messages The

Xcode: Showing All Messages The

作者: 行走世间全都是妖怪 | 来源:发表于2020-12-29 14:40 被阅读0次

        错误信息: 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.

        解决方案:进入target的build setting 栏,修改iOS Deployment Target为8.0以上

还有种做法,是在Podfile文件最底部添加,后边的版本号就跟错误提示中说明的版本号

 post_installdo|installer|

    installer.pods_project.targets.eachdo|target|

      target.build_configurations.eachdo|config|

        ifconfig.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f <9.0

          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] ='9.0'

        end

      end

    end

  end

相关文章

网友评论

    本文标题:Xcode: Showing All Messages The

    本文链接:https://www.haomeiwen.com/subject/jqlfoktx.html