xcode commit missing file or directory xcode commit missing file or directory xcode xcode

xcode commit missing file or directory


This just happened to me. I had deleted a folder with contents from the project folder. Xcode didn't handle that well.

What worked to fix it was to recreate an empty folder with the same name. No need to recreate its contents.

In your case I think you just need to create a new empty "MA Mobile" folder in the same location the old one was. Then commit. It worked for me.

After the first commit I deleted the new folder, then committed again. It seems that Xcode is missing the logic to handle the deletion of a whole folder with contents.


If you'd like to simply commit all changes you made, doing so through the Terminal should fix the problem.

Open the Terminal App and cd into your project directory, once there type in the following command:

git commit -a

Enter your commit message by pressing 'i' and typing it in, then press 'Esc', then ':', and type 'wq'

All done, you're problem should be fixed.


Jader Feijo's answer solve my problem.

Just want to suggest an easier way to add comment, without all this additional Vi steps, by simply adding -m parameter:

git commit -a -m "Commit Message"