对于NS项目,如何设置最低iOS版本。
我有IPHONEOS_DEPLOYMENT_TARGET = 8.0;在我的build.xcconfig文件中 但在构建期间,我得到了未设置的消息。
在构建过程中,我得到:
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.
[WARNING]: [!] Automatically assigning platform ios with version 8.0 on target publishios because no platform was specified. Please specify a platform for this target in your Podfile. See
https://guides.cocoapods.org/syntax/podfile.html#platform .
我的iOS / build.xcconfig文件有
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
答案 0 :(得分:0)
答案 1 :(得分:0)
在平台文件夹中修改任何内容都会在构建时被覆盖。尝试修改位于 app/App_Resources/iOS 中的 Podfile:如果不存在则创建文件,它没有扩展名
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end