Git ignore UserInterfaceState.xcuserstate

git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
原文地址:https://www.cnblogs.com/iosdev/p/3418393.html