Xcode git keeps complaining of unsaved changes

Xcode keeps complaining about changes when I try and commit, I get the error "The local repository is out of date."

When I try and pul changes from the remote, I get the message "Your local repository has uncommitted changes that need to be stashed before you can continue. "

When I try and commit, every time it shows a UserInterfaceState.xcuserstate file. if I try and commit it I get the local repository error.

I wouldn’t put that file in git. Surely you do not want to version the state of Xcode UI? It keeps changing as the user interface state changes.

Xcode git keeps complaining of unsaved changes
 
 
Q