Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Question marks in project navigator Xcode 5

Tags:

git

ios

xcode5

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.

like image 951
or azran Avatar asked Oct 20 '13 17:10

or azran


People also ask

What do the question marks mean in Xcode?

It's the file untracked by source control.

What does question mark mean in Swift?

Question marks after a type refer to Optionals , a way in Swift which lets you indicate the possibility that a value might be absent for any type at all, without the need for special constants.

How do you do a question mark in Swift?

You specify optional chaining by placing a question mark ( ? ) after the optional value on which you wish to call a property, method or subscript if the optional is non- nil . This is very similar to placing an exclamation point ( ! ) after an optional value to force the unwrapping of its value.

What is project Navigator in Xcode?

The Project navigator displays your project's files and lets you open, add, delete, and rearrange those files. To open the Project navigator, at the top of your project window's navigator area, click the icon that resembles a file folder.


1 Answers

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.

like image 96
AdamG Avatar answered Oct 12 '22 22:10

AdamG