有一个文件Project.xcworkspace/xcuserdata/
git rm --cached Project.xcworkspace/xcuserdata/<xxxxx>.xcuserdatad/UserInterfaceState.xcuserstat
git commit -m 'removed dont managed file'
The docs say: “If you have an image file that will only be displayed once and wish to ensure that it does not get added to the system’s cache, you should instead create your image using imageWithContentsOfFile:. This will keep your single-use image out of the system image cache, potentially improving the memory use characteristics of your app.” So, if your images are not re-used, you should use imageWithContentsOfFile: instead of imageNamed:.
--EOF--