我在Xcode 10.1中得到了下面的警告信息。
iOS Simulator部署目标设置为7.0,但此平台支持的部署目标版本范围为8.0到12.1。
我的模拟器操作系统是12.1 Xcode 10.1
我更新了pod文件。
我的部署目标是9.0
在我的目标中
我在Xcode 10.1中得到了下面的警告信息。
iOS Simulator部署目标设置为7.0,但此平台支持的部署目标版本范围为8.0到12.1。
我的模拟器操作系统是12.1 Xcode 10.1
我更新了pod文件。
我的部署目标是9.0
在我的目标中
当前回答
试试下面这些步骤:
删除Podfile.lock 删除你的Podfile 建设项目 从firebase添加初始化代码 cd / ios 圆荚体安装 运行项目
这对我来说很管用。
其他回答
对于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
如果有人从react native issue来这里,只需删除/build文件夹并输入react-native run ios
您所需要做的就是取消下面这一行的注释
# platform :ios, '8.0'
OR
# platform :ios, '9.0'
等等……
然后打开终端的iOS文件夹,传递这些命令:
% pod repo update
% pod install
首先将部署更改为您所选择的:例如'11.0' 并将此步骤添加到pod文件的最后
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
简单的解决方案,对我来说在颤振:
删除Podfile和Podfile.lock 运行app:这将创建一个新的Podfile。这可能仍然会失败并报错。 在新的Podfile中,取消注释,并将第二行更改为平台:ios, '12.0'(或其他你想要目标的最小版本) 再次运行应用程序,现在没有错误