新建项目时大家还是比较习惯使用cocoapods来对第三方库进行管理,目前在新创建podfile文件之后初始化pod时会有警告提示
1、[!] The Podfile does not contain any dependencies.
当前podfile文件中未包含任何第三方库,可以忽略,只要后面引入第三方库之后该警告自动消失
2、[!] Automatically assigning platform iOS
with version 15.2
on target TestDemo
because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform
.
因为没有指定platform对应的版本,打开Podfile文件,取消注释,并可调整版本
platform :ios, '9.0'
3、[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove master
. To suppress this warning please add warn_for_unused_master_specs_repo => false
to your Podfile.
只需要执行pod repo remove master就可以,不用担心pds会无法正常使用