我想将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
问题是我的项目文件夹中没有安装GIT。
git status
fatal: Not a git repository (or any of the parent directories): .git
有没有人知道如何解决这个问题?注意:我不知道在.podspecs
中更改任何内容答案 0 :(得分:6)
您可以通过运行rm -rf ~/.cocoapods
删除CocoaPods规格库的本地副本并使用pod setup
重新设置来解决此问题。