新建項(xiàng)目時(shí)大家還是比較習(xí)慣使用cocoapods來(lái)對(duì)第三方庫(kù)進(jìn)行管理江耀,目前在新創(chuàng)建podfile文件之后初始化pod時(shí)會(huì)有警告提示
1橄碾、[!] The Podfile does not contain any dependencies.
當(dāng)前podfile文件中未包含任何第三方庫(kù),可以忽略倔约,只要后面引入第三方庫(kù)之后該警告自動(dòng)消失
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
.
因?yàn)闆](méi)有指定platform對(duì)應(yīng)的版本,打開(kāi)Podfile文件垒探,取消注釋,并可調(diào)整版本
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.
只需要執(zhí)行pod repo remove master就可以圾叼,不用擔(dān)心pds會(huì)無(wú)法正常使用