我有很多 CocoaPods 都抛出这个警告:
iOS 部署目标“IPHONEOS_DEPLOYMENT_TARGET”设置为 8.0,但支持的部署目标版本范围为 9.0 到 14.4.99。
无论如何要纠正这些? 转换为 Swift Packages 会有帮助吗?如果有的话,有没有办法判断 Pod 是否有 swift 包?
谢谢大家
最佳答案
在最后的 pod 文件中,您可以使用它来将每个 pod 的最低操作系统版本设置为特定版本,然后从终端运行 pod install 命令。这将更改部署目标版本。
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
关于swift - cocoa bean 。 iOS 部署目标 IPHONE_DEPLOYMENT_TARGET,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67108160/