I forked a repo, then cloned it to my Mac into a /YATC directory. I had a previously-created Xcode project (TwitterTimeline) in another directory, which I copied in
/YATC
I got this problem too,Here is my way to fix this:
git rm --cached directory git add directory