You have an existing Xcode project and you want a brand new local git repo. Xcode wants to include UserInterfaceState and you never seem to be able to sync. Here we go.
Get rid of any existing local repos.
cd ProjectDirectory rm -rf .git
Cool. Now the awesomesauce:
find . | cut -c 3-$NF | grep UserInterfaceState.xcuserstate > .gitignore
So you just found all of the UserInterfaceState files in your Xcode Project. We got rid of the ./ at the beginning and added them to your .gitignore file. Now we can build the repo.
git init git add . git commit -m "Initial Commit"
Yes, you still love git.