No url found for submodule path 'Pods' in .gitmodules

Viewed 4084

I have added the Xcode project into the git repo. When I run the following command:

$ git submodule init

I get the following error:

fatal: No url found for submodule path 'Pods' in .gitmodules

I didn't add the 'Pods' submodules, it is added on its own?

1 Answers

Not sure why Pods is listed in your .gitmodules. This article mentions

This occurs when the repository is using files cloned from another repository but has had no mapping reference to the source repository created for it.

The mapping needs to be added to a .gitmodules file located in the root directory of the repository you are using.

But in your case, edit the .gitmodules file and remove the Pods entry.

And check if there is any Pods in your index:

git rm --cached -- Pods
Related