![](/img/trans.png)
[英]Flutter: AVCapturePhotoOutput' is only available on iOS 10.0 or newer
[英]Targeting iOS 11.0 but still getting warnings: is only available on iOS 10.0 or newer
我将项目和目标部署目标都设置为11.0。 我还删除了派生数据,清理和重建(多次)......我仍然遇到这些错误。 还有什么我可能会失踪的吗? 我确实将部署目标从9.x更改为11.0。 也许我错过了什么。
AVCapturePhotoOutput'仅适用于iOS 10.0或更高版本AVCaptureResolvedPhotoSettings'仅适用于iOS 10.0或更高版本AVCaptureDeviceTypeBuiltInWideAngleCamera'仅适用于iOS 10.0或更高版本
和其他几个人
如果您正在使用CocoaPods,这可能是因为它为其链接的库设置了错误的目标。 这是一个众所周知的CocaPods 问题 。
在问题解决之前,我正在使用这个临时“修复”,它已从我的项目中删除了103个警告。 您可以将它放在Podfile
的底部:
# temporary fix for this issue to suppress a ton of warnings
# https://github.com/CocoaPods/CocoaPods/issues/7314
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.