可可豆。 iOS 部署目标 IPHONE_DEPLOYMENT_TARGET
CocoaPods. The iOS deployment target IPHONE_DEPLOYMENT_TARGET
我有很多 CocoaPods 都抛出这个警告:
iOS 部署目标 'IPHONEOS_DEPLOYMENT_TARGET' 设置为 8.0,但支持的部署目标版本范围是 9.0 到 14.4.99。
无论如何要更正这些?
转换为 Swift 包会有帮助吗?如果有的话,有没有办法判断 Pod 是否有 swift 包?
谢谢大家,
在最后的 pod 文件中,您可以使用它来将每个 pods 的最低 os 版本设置为特定版本,然后 运行 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
我有很多 CocoaPods 都抛出这个警告:
iOS 部署目标 'IPHONEOS_DEPLOYMENT_TARGET' 设置为 8.0,但支持的部署目标版本范围是 9.0 到 14.4.99。
无论如何要更正这些? 转换为 Swift 包会有帮助吗?如果有的话,有没有办法判断 Pod 是否有 swift 包?
谢谢大家,
在最后的 pod 文件中,您可以使用它来将每个 pods 的最低 os 版本设置为特定版本,然后 运行 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