美文网首页
CocoaPods创建私有库报错

CocoaPods创建私有库报错

作者: 水中的蓝天 | 来源:发表于2020-11-22 10:53 被阅读0次

无法找到“MacroCategoryKit”的规范

[!] Unable to find a specification for `MacroCategoryKit`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
  • 找不到是因为私有库需要配置描述文件地址的,没有肯定找不到;所以在Podfile文件中添加source 'https://gitee.com/alvinsunny'
  • pod install就可以啦

-错误| [CommonUIKit/LGErrorView, CommonUIKit/LGToast, CommonUIKit/LGLoading,等等…]] xcodebuild:返回一个不成功的退出码。

    - ERROR | [CommonUIKit/LGErrorView, CommonUIKit/LGToast, CommonUIKit/LGLoading, and more...] xcodebuild: Returned an unsuccessful exit code.
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.

[!] The `CommonUIKit.podspec` specification does not validate.

compodspec有残留,需要清理

[!] The repo `compodspec` at `../../../../../.cocoapods/repos/compodspec` is not clean

可以删除重新创建compodspec文件

您的配置指定与ref 'refs/heads/master'合并
从远程,但没有这样的参考。

[!] /usr/local/bin/git -C /Users/mac/.cocoapods/repos/compodspec pull

Your configuration specifies to merge with the ref 'refs/heads/master'
from the remote, but no such ref was fetched.

远程库开启分支管理

由于两个警告,MacroCategoryKit没有通过验证

[!] MacroCategoryKit did not pass validation, due to 2 warnings (but you can use `--allow-warnings` to ignore them).
You can use the `--no-clean` option to inspect any issue.

可以使用 ——allow-warnings来忽略

相关文章

网友评论

      本文标题:CocoaPods创建私有库报错

      本文链接:https://www.haomeiwen.com/subject/baqkghtx.html