You probably misconfigured the git repository. There are ways to add external git repositories, but they usually don't work well for github (in my experience) and always lead to these problems.
If you want to set up a remote git repository through github on Xcode, these are the steps you must take.
- Make a repository on github. Be sure to add the .gitignore file for Objective-C.
- Clone the repository.
- Go to Xcode, click "create new project"
- Create a project in the folder to which the repo was cloned. I always call it the same, but I do not know if this is necessary.
- Do not install the local git repository.
This will certainly create a project under the control of the version of the remote git repository hosted on github.
Adamg source share