gpt4 book ai didi

ios - Cocoapods 错误 : 'Unable to read the license file'

转载 作者:可可西里 更新时间:2023-11-01 03:27:42 27 4
gpt4 key购买 nike

当我打字时

pods install

pods update

我收到一个库的以下错误:

Unable to read the license file /Users/me/Documents/project/myproject/company/myproduct/Pods/OHAttributedLabel/OHAttributedLabel/LICENSE for the spec OHAttributedLabel (3.5.3)

有人知道为什么吗?有人建议我:

pod repo remove master
pod setup

没用

最佳答案

在我的例子中,这与我团队中的某个人将他们的 .xcworkspace 文件提交到存储库有关,这意味着运行 pod install 给了我许可证警告,但在同时,没有正确安装我的 pod 。

我是这样解决的:

  1. 首先关闭 Xcode。
  2. 列表项
  3. 从项目中删除 Pods 文件夹
  4. 删除.xcworkspace文件,
  5. 删除Podfile.lock 文件
  6. 最后,删除 DerivedData 文件夹

现在运行 pod install,问题应该已经解决了。

关于ios - Cocoapods 错误 : 'Unable to read the license file' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24090178/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com