CocoaPods小知识集锦

在使用CocoaPods 的过程中遇到的问题。整理性的一遍文章,没有多少价值。

1

1
2
✘ sunyang@sunny-mbp  ~/desktop/ios  pod install
[!] No `Podfile' found in the project directory.

解决方案

1
2
3
4
5
6
7
8
✘ sunyang@sunny-mbp  ~/desktop/ios  pod repo remove master
Removing spec repo `master`
✘ sunyang@sunny-mbp  ~/desktop/ios  pod setup
Setting up CocoaPods master repo
✘ sunyang@sunny-mbp  ~/desktop/ios  pod install
Pod installation complete! There are 3 dependencies from the Podfile and 4 total pods installed.

原因

这是因为 CocoaPods 基于 GitHub 的网页编辑器的 libgit2的一个 bug。 正式这个 bug 导致了 git 仓库错误。

唯一的解决办法就是像上面一样。

相关链接

CepheusSun wechat
订阅我的公众号,每次更新我都不一定会告诉你!
坚持原创技术分享,您的支持将鼓励我继续创作!
0%