Search code examples
iosgitxcode5

Question marks in project navigator Xcode 5


i just updated to Xcode 5 and my project is using GIT, after update completed suddenly question marks appear in project navigator file near each file.

enter image description here

when i am trying to Commit i don't see what files have been changed, i cannot pull also and when i am trying to push it gives :Push Success" message but the repository on GitHub don't updated.


Solution

  • You probably did not set up your git repository properly. There are ways of adding external git repositories, but they tend not to work well for github (in my experience) and always lead to these sorts of issues.

    If you want to set up a remote git repository through github on XCode these are the steps you should take.

    1. Make the repository on github. Make sure to add the .gitignore file for Objective-C.
    2. Clone the repository.
    3. Go to XCode, press "create new project"
    4. Create the project in the folder you cloned the repo to. I always name it the exact same thing, but I don't know if that is necessary.
    5. Make sure not to select create local git repository.

    This will definitely create a project that is under version control by a remote git repository hosted on github.