对于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;
查看以下内容,了解一些播客语法指南
对于这个特定的问题,您只需要编辑platforms/ios/Podfile
并设置如下版本:
platform :ios, '9.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