xcode commit missing file or directory

后端 未结 6 1393
日久生厌
日久生厌 2020-12-30 06:28

I\'m not sure what happen but when I try to commit my changes in Xcode I get an

fatal: Could not switch to \'/Users/charlesbutler/xCode/MA Mobile/MA MobileTests\':

6条回答
  •  甜味超标
    2020-12-30 07:19

    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.

提交回复
热议问题