Xcode can’t ignore UserInterfaceState.xcuserstate

Скорей всего гит уже трекает этот файл и нужно его удалить.

git rm --cached [project].xcodeproj/project.xcworkspace/xcuserdata/[username].xcuserdatad/UserInterfaceState.xcuserstate
git commit -m "Removed file that shouldn't be tracked"
Xcode can’t ignore UserInterfaceState.xcuserstate