7

ポッドファイルを使用するプロジェクトが既に 1 つあります。

古いプロジェクトに Podfile を追加したかったのですが、このエラーが発生しました sudo pod install

エラー:

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

注意:ポッドのセットアップでも同じエラーが発生します

4

2 に答える 2

34

コマンドラインから実行rm -rf ~/.cocoapods

その後、pod install再度実行します。sudoは必要ありません。

これは、仕様に変更があり、実行と競合していることが原因のようです。git pull

于 2013-02-20T15:16:19.777 に答える