ios - iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1
问题描述
我在 Xcode 10.1 中收到以下警告消息。
iOS Simulator 部署目标设置为 7.0,但此平台支持的部署目标版本范围为 8.0 到 12.1。
我在 12.1 Xcode 10.1 中的模拟器操作系统
我更新了我的 pod 文件。
我的部署目标是 9.0
在我的目标
解决方案
您可以设置您的 podfile 以自动将所有 podfile 的部署目标与您当前的项目部署目标匹配,如下所示:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
推荐阅读
- jms - 如何正确关闭 JMS 连接
- java - 允许用户将链接从应用程序发送给另一个人,然后在单击时打开应用程序
- c++ - C++ 在控制台加载栏时使用处理功率/时间
- node.js - Node js集群环境下多次运行Cron Job
- angular - 本机元素无法在角度 5 中正确访问
- python - 我怎样才能用乌龟在python中画一个漂亮的螺旋线?
- amazon-web-services - 将外部域名连接到 AWS S3 网站
- javascript - 当我 JSON.stringify 时,数组不会更新
- java - 从文档中搜索摄取附件的最佳实践(2k+ 包含摄取附件的文档)
- javascript - Bootstrap 4.1.1页脚中心对齐与右边框