我遵循了文章-https://guides.cocoapods.org/syntax/podspec.html#license中建议的规则,但我没有运气。当我设置规范时会看到一个警告-
无法读取规范名的许可证文件//LICENSE.md
我设备上安装的软件版本:.gem/ruby/2.5.0/ gems/cocoapods-1.4.0/ Xcode-9.2
下面是添加到我的podspec文件中的一行代码-
s.license ={:键入=>‘新BSD',:文件许可证’=>‘}
我已将文件名更改为LICENSE.md,但没有看到任何幸运。
谢谢!
发布于 2020-01-03 06:04:52
我有一个旧的应用程序有这个问题,我想要更新,但有问题的pod已经安装。但是,当我尝试构建应用程序时,它给了我同样的错误信息。运行pod install和pod update未解决此问题。
我可以通过执行以下操作来修复此问题:
1. Delete the line in Podfile for the problematic pod
2. Run pod install at the command line - this will remove the pod
3. Reinsert the line for the pod in question in Podfile
3. Run pod install at the command line againhttps://stackoverflow.com/questions/49787572
复制相似问题