gpt4 book ai didi

ios - 忽略存储库中的 CocoaPods 库

转载 作者:行者123 更新时间:2023-11-29 03:15:21 24 4
gpt4 key购买 nike

我有一个存储库。

我想我不需要将所有 pods 库保存在我的 repo 中,因为我可以随时使用 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

这是我的gitigonre:

# 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 文件中只存储信息而不在 repo 中存储库,因为我们可以在 cocoa pods 服务器工作时随时下载它们。

最佳答案

CocoaPods master 规范在一个多星期前搞得一团糟。因此,您将不得不删除本地副本,然后按照他们的说明重新设置。

讨论该问题的博客链接:http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/

恢复运行的命令:

sudo rm -fr ~/.cocoapods/repos/master
pod setup

关于ios - 忽略存储库中的 CocoaPods 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21751498/

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