50
votes
2answers
14k views

Can't ignore UserInterfaceState.xcuserstate

I'm using Git for Xcode 4 project version control. I've explicitly added ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate to .gitignore, ...
30
votes
2answers
28k views

In XCode 4 how do I add a remote GitHub repository to an existing local project?

The Git integration in XCode 4 is very welcome however it seems to be a bit flaky when it comes to dealing with remote repositories. For clarity I'm using OS X version 10.6.7 and XCode 4.0.2 ...
19
votes
6answers
9k views

Does Xcode 4 install git?

I bought a new MacBook Pro and installed the applications list below in order. On my old MacBook, also running OS X 10.6.6, I didn't have /usr/bin/git, however, on the new MacBook Pro, I do. The only ...
17
votes
2answers
841 views

Xcode 4 build schemes screwed up everytime I change branches in Git

In Xcode 4, when I'm working when an iOS project, the Scheme drop down menu in Xcode's toolbar normally displays a scheme for iPhone X.X Simulator, iPad X.X Simulator and iOS Device. When changing ...
14
votes
3answers
4k views

.gitignore file, where should I put it?

I want git to ignore my UserInterfaceState.xcuserstate file in my XCode4 project, but where should i put the .gitignore file?, is it inside the .git folder? or out?. The .git is in same folder with ...
8
votes
2answers
3k views

Good practice to use git together with svn

Subversion was popular several years ago, now git is becoming popular and more and more people want to replace Subversion with git. Problem is that a lot projects were based on Subversion. So ...
7
votes
3answers
886 views

Make Xcode 4 stop auto staging with git

I hate it that whenever I make a change in Xcode 4 it automatically does a "Git add" command. Is there a way to make this stop?
7
votes
1answer
285 views

How can I stop an Xcode Archive build if my git working copy is dirty?

I do not want an Archive build to succeed unless my working directory is clean. Therefore, I want to add a "Run Script" build phase (or something similar) to my Xcode project such that: IF I am ...
7
votes
2answers
4k views

How to use Github with Xcode4's version control

The whole implementations seems very unstable. Sometimes I can push, sometimes it fails with 'no permission'. Cloning through Xcode's Organizer behaves even stranger: The first time, it fails with ...
6
votes
2answers
2k views

Create git repository after project creation

I know there's an option to make a local repository for your project when you first create it, but is there an option create a repository after you've created your project?
6
votes
12answers
2k views

Xcode 4 Git—“This file does not exist at the requested revision”

I have a local git repository that I set up with a project in Xcode 4. The repository shows up fine in the Organizer and I can see commit histories and Source Control icons in the File Navigator. ...
6
votes
1answer
858 views

How do I stop XCode 4 from modifying a local Git repository?

I have a Git repository, which for my own reasons I want to manage outside of XCode 4. Really what I want is XCode to just leave my repository alone. However, I've noticed that XCode will add new ...
5
votes
2answers
1k views

RestKit with Xcode4 but not as a GitHub submodule

I was following the readme to get started using RestKit. Everything works just fine when adding RestKit as a GitHub submodule. Is there a way I can add RestKit to an already existing Xcode 4 project ...
5
votes
3answers
5k views

Xcode 4 restore file from earlier commit

I have my project on a git repository and so far I'm not finding it terribly useful. I've used git before and think it's great, but this time I'm using a local repo. I figured that there would be some ...
5
votes
1answer
291 views

Xcode bugs with git?

I'm trying to understand some of the current behavior of git in Xcode. When I push from within Xcode using Fine > Source Control > Push... two things happen that seem to be (possibly related) bugs: ...

1 2 3 4 5 8
15 30 50 per page