Cocopods pod install警告记录

xxxx % pod install
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 2 dependencies from the Podfile and 2 total pods installed.

[!] The Podfile does not contain any dependencies.

[!] The platform of the target `ScanDemo` (iOS 10.0) may not be compatible with `SGQRCode (4.1.0)` which has a minimum requirement of iOS 11.0.

[!] 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.

中文解释如下:
Analyzing dependencies — 分析依赖项
Downloading dependencies — 下载依赖项
Generating Pods project — 生成Pods项目
Integrating client project — 集成客户端项目

Pod安装完成!从Podfile中没有发现任何依赖项,共安装了2个Pods。

[!] Podfile文件中没有任何依赖项。

[!] 项目’ ScanDemo ’ (iOS 10.0)的平台可能与具有iOS 11.0最低要求的’ SGQRCode(4.1.0) '不兼容。

[!] 您的项目没有明确指定CocoaPods主规格库存储库。由于CDN现在是默认设置,您可以通过pod repo remove master安全地从repos目录中删除它。要抑制此警告,请在您的Podfile中添加warn_for_unused_master_specs_repo => false。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在使用CocoaPods时,pod install是一条指令,用于根据Podfile文件中的依赖关系来安装项目中所需要的所有库和框架。 使用pod install会生成一个Pods文件夹,其中包含了项目所需要的所有依赖库的源代码和资源文件。这样,在项目中就可以通过import或者其他方式来使用这些库了。 与之相对的是pod update指令,它会根据Podfile文件中的依赖关系更新项目中的库版本,即将已安装的库更新为最新版本。 使用pod update会检查库的最新版本,并下载更新到本地的Pods文件夹中。然而,需要注意的是,pod update会更新所有的库,可能会导致某些库的版本不兼容或者出现其他问题。因此,在使用pod update时需要谨慎,并且在更新之前先备份项目以防万一。 为了确保项目中的所有开发者都使用相同版本的库,可以使用Podfile.lock文件来锁定库的版本。Podfile.lock文件会记录项目中每个库的具体版本号,这样在执行pod install时,CocoaPods会根据Podfile.lock文件中的版本信息来安装相应的库。这样可以避免不同开发者之间因为库版本不一致而导致的问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [iOS进阶 - pod installpod update 读这一篇就够了](https://blog.csdn.net/qq_22326601/article/details/113174475)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值