1

when i am trying to install the pod its showing errors. how to solve this?

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.

3
  • Pod file is already present, why are you using pod init? Commented Jul 10, 2017 at 12:47
  • if i am not adding also its showing same error Commented Jul 10, 2017 at 13:32
  • Use pod install Commented Jul 11, 2017 at 12:41

1 Answer 1

1

This problem got solve by re setting the git manually if anyone having same issue just reset the cocoa-pods it will help you. Go to ~/.cocoapods/repos and run git clone https://github.com/CocoaPods/Specs.git master it will help you to resolve the solution

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.