gpt4 book ai didi

ios - "sudo pod install"错误

转载 作者:可可西里 更新时间:2023-11-01 03:22:41 25 4
gpt4 key购买 nike

我已经有一个使用 podfile 的项目。

我想在一个旧项目上添加一个 Podfile 但我在sudo pod 安装

错误:

Resolving dependencies of `./Podfile'
Updating spec repositories
[!] git pull
Updating 35bbbaf..8b42708
error: The following untracked working tree files would be overwritten by merge:

AFXAuthClient/1.0.4/AFXAuthClient.podspec

Please move or remove them before you can merge.

Aborting

这很奇怪,因为我没有在我的项目中使用 AFXAuthClient,而且我从未使用过它。

这是我的 Podfile:

platform :ios, '5.0'
pod 'TTTAttributedLabel', '~> 1.6.0'
pod 'ECSlidingViewController', '~> 0.9.0'

我试过没有成功:

gem install cocoapods
pod setup

注意:我在 pod setup

中遇到了同样的错误

最佳答案

从命令行运行 rm -rf ~/.cocoapods

然后再次运行pod install。你不应该需要 sudo。

这看起来是因为规范发生了变化,并且与运行 git pull

冲突

关于ios - "sudo pod install"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14970877/

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