CocoaPods需要提交而没有安装GIT

ppr*_*a72 1 git cocoapods

我想将CocoaPods安装到我的XCode项目中,但是当我运行pod install命令时,我得到以下消息:

Analyzing dependencies
[!] Pod::Executable pull

Updating 094c19b..3c2b414
error: Your local changes to the following files would be overwritten by merge:

    FMDB/2.1/FMDB.podspec

    GoogleConversionTracking/1.2.0/GoogleConversionTracking.podspec

    XMPPFramework/3.6.2/XMPPFramework.podspec

Please, commit your changes or stash them before you can merge.

Aborting
Run Code Online (Sandbox Code Playgroud)

问题是我的项目文件夹中没有安装GIT.

git status
fatal: Not a git repository (or any of the parent directories): .git
Run Code Online (Sandbox Code Playgroud)

有谁知道如何解决这个问题?注意:我不知道在.podspecs中更改任何内容

Kei*_*ley 6

您可以通过运行rm -rf ~/.cocoapods并使用再次设置来删除CocoaPods规格库的本地副本来解决此问题pod setup.