Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7621493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:12:34+00:00 2026-05-31T04:12:34+00:00

Using Git with Xcode (4.3) is a real nightmare. Here’s a scenario… I want

  • 0

Using Git with Xcode (4.3) is a real nightmare.

Here’s a scenario…

I want to add a new feature, so I create a new topic branch.

I add my new feature and I’m ready to commit, rebase and merge…

I commit my changes – fine.

I jump back to master to pull changes (in case someone else has updated the code).
Suddenly I get:

error: Your local changes to the following files would be overwritten by checkout:
myProject/project.xcworkspace/xcuserdata/Bodacious.xcuserdatad/UserInterfaceState.xcuserstate

huh? I just committed.

Xcode likes to change my project.xcworkspace files every other second which makes it almost impossible to make clean, atomic commits.

What’s more, if I do commit the changes in project.xcworkspace and quickly jump back to another branch (in order to merge into Master for example) then Xcode will complain that the files have changed and probably crash too.

From what I gather, I can’t add these files to my .gitignore either.

Do I have to accept that a concise and orderly git strategy is not possible with Xcode, close Xcode before doing any Git management, or is there another option available?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:12:36+00:00Added an answer on May 31, 2026 at 4:12 am

    I just add those files to my .gitignore file. There is no need to share them with other developers.

    So I have:

    *.xcworkspace
    

    In .gitignore

    Note that the stackoverflow question you linked to says to not exclude project.pbxproj, but it doesn’t say not to exclude *.xcworkspace.

    However, I’m not using the workspace feature at this time. If you do use the workspace feature you may want to include those files, but ignore the xcuserdata files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add local svn or git repository to my code in Xcode
I've just started using Git and it's possible I've missed something obvious, but here
I am new to Git and I am using it to backup an iPhone
I'm using Xcode 3.2.1 on OSX 10.6.8, and I want to study how Avogadro
I'm using Xcode 4 in combination with Git and would like to increment the
I wanted to add an Xcode project to an existing repository using the following:
In my iPhone app, I am using the in-built Git repository of Xcode 4
Possible Duplicate: How to quickly set up Git for teams using Xcode? I have
When using git add with a file pattern it only adds recursively the untracked
I am trying to configure Git repository using Xcode 4. When I try to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.