Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy isn't source control working when I use a workspace in Xcode 5?
    text
    copied!<p>Normally I just create a new project, select the option to keep it under source control, and everything works.</p> <p>Today I tried using a workspace, and it doesn't work. Here is what I did:</p> <ol> <li>File->Xcode->New WorkSpace. (Create the workspace in a new folder). hit Save. </li> <li>File->New Project->iOS->Single View Application->Next</li> <li>Enter product name etc, Next</li> <li>Make sure "Create git repository on My Mac" is checked. Select the folder where the workspace is saved. Choose "Add to"->The workspace you created. Hit Create.</li> <li>Type some stuff into app delegate. Build. Save file.</li> <li>Try to commit in source control --> Can't! All the options are greyed out. Even though changes are made to app delegate, the "m" symbol does not appear near it.</li> </ol> <p><strong>How do I correctly set up my workspace so I can use source control ? What is wrong with my set up ?</strong></p> <p>EDIT: Trying to add new files doesn't make the "A" symbol show up near the new files either. Clearly source control isn't on.<br> If I create a project that isn't part of the workspace, source control works fine.</p> <p>EDIT: Navigating to the folder directory and running <code>git status</code> , gives the following message:</p> <blockquote> <p>fatal: Not a git repository (or any of the parent directories): .git</p> </blockquote> <p><strong>Why wasn't a git repository created ? and how do I get it to work?</strong></p> <p>EDIT: I deleted my project from the workspace. Closed the workspace. Created the project again outside the workspace. Closed the project. Dragged the project into the workspace, and now the project is both part of he workspace, and it is under source control. Can't tell why it didn't work when I created the project within the workspace.</p> <p>EDIT: As I don't know the reason why source control didn't work when I created the project within the workspace, I'm leaving this open in case someone has an answer, or knows if it is a known bug. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload