Xcode git 忽略user interface state文件 退出xcdoe, 打开终端(Terminal),进入到你的项目目录下 在终端输入如下代码 git rm --cached *.xcuserstate git commit -m "Removed cached files" git push 下次Xcode commit就不会包括user interface state