gpt4 book ai didi

ios - 关于ios项目中pod安装错误

转载 作者:行者123 更新时间:2023-11-29 00:17:18 26 4
gpt4 key购买 nike

当我尝试安装 pod 时,它显示错误。如何解决?

Apples-MacBook-Pro:~ apple$ cd /Users/apple/Desktop/lkmmlkmk Apples-MacBook-Pro:lkmmlkmk apple$ pod init [!] Existing Podfile found in directory Apples-MacBook-Pro:lkmmlkmk apple$ pod install Setting up CocoaPods master repo fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' $ /usr/bin/git -C /Users/apple/.cocoapods/repos/master fetch origin --progress fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. [!] Unable to add a source with url https://github.com/CocoaPods/Specs.git named master-1. You can try adding it manually in ~/.cocoapods/repos or via pod repo add.

最佳答案

这个问题通过手动重新设置 git 得到解决,如果有同样问题的人只需重置 cocoa-pods 它将帮助你。转到 ~/.cocoapods/repos 并运行 git clone https://github.com/CocoaPods/Specs.git掌握它将帮助您解决解决方案

关于ios - 关于ios项目中pod安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45012414/

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