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

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

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

我更新了pod文件。

我的部署目标是9.0

在我的目标中


当前回答

在我的情况下,我不小心导入了dart.js,所以如果它刚刚在重新加载或重新启动时停止工作,请检查您的导入

其他回答

对于Flutter使用这个

platform :ios, '10.0'

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

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

问题是在你的pod文件部署目标iOS版本中,而不是在你的项目部署目标iOS版本中,所以你需要改变你的pod的部署iOS版本到8.0以上的任何版本,这样就可以打开你的项目工作区并这样做:

1-点击pods。

2-选择每个项目和目标,并单击构建设置。

3-在“部署”部分将iOS部署目标版本更改为8.0以上的任何版本 (最好尝试相同的项目版本)。

4-对你的pod中的其他项目重复这个步骤,然后运行应用程序。

详情见照片

对于有此问题的cordova开发者

试着设置

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

在config . xml

如果有人从react native issue来这里,只需删除/build文件夹并输入react-native run ios