[英]Ignoring CocoaPods libraries in the repo
我有一个资料库。
我想我不需要将所有pods库保存在我的仓库中,因为我可以随时使用pod install
命令安装它们。
但是当我运行pod install
,出现以下消息:
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
我运行git status并看到:
nothing to commit, working directory clean
这是我的傻瓜:
# OS X ignores
.DS_Store
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
Pods
因此,问题在于如何仅将信息存储在Pods文件中,而不将库存储在存储库中,因为在可可豆荚服务器工作时,我们可以随时下载它们。
一个多星期前,CocoaPods主规范变得一团糟。 因此,您将必须删除本地副本,然后按照他们的说明重新进行设置。
他们讨论该问题的博客的链接: http : //blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
备份并运行的命令:
sudo rm -fr ~/.cocoapods/repos/master
pod setup
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.