我在Xcode 10.1中得到了下面的警告信息。

iOS Simulator部署目标设置为7.0,但此平台支持的部署目标版本范围为8.0到12.1。

我的模拟器操作系统是12.1 Xcode 10.1

我更新了pod文件。

我的部署目标是9.0

在我的目标中


当前回答

如果你来自react-native,遇到这个错误,就这样做

打开Podfile(你的项目> ios>Podfile) podfile中的注释翻转函数如下所示

#use_flipper!
 #post_install do |installer|
   #flipper_post_install(installer)
 #end

在终端内的IOS文件夹中输入此命令吊舱安装

是的,就是这样,希望对你有用

其他回答

如果有人在更新到最新的react本机时遇到问题,请尝试更新pod文件

  use_flipper!
  post_install do |installer|
    flipper_post_install(installer)
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
      end
    end
   end

我在构建React Native项目时也遇到了同样的问题

Cocoapods版本更新对我有效(从1.8.4升级到1.11.2)

对于有此问题的cordova开发者

试着设置

<preference name="deployment-target" value="8.0" />

在config . xml

您可以设置您的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

Xcode > Runner >信息部署目标> IOS部署目标:11 .

开放终端:

pod cache clean --all

.

pod update