How to remove reference of file Xcode?

前端 未结 6 2472
一整个雨季
一整个雨季 2021-02-20 09:34

I had removed some files from my iOS project a while back and thought they had been completely deleted. After a long time I created another class which unfortunately had the sam

6条回答
  •  时光取名叫无心
    2021-02-20 10:14

    I hit the same issue today. Due to git merge issue, I ended up with a image file removed, but reference to it still exists. To clarify, My intention was to remove the image.

    The simple way to fix this would be using vim, or other text editors

    vim PATH_TO_PROJECT/{#projectName}.xcodeproj/project.pbxproj
    

    and do a search on the name of the file you deleted and just delete all search results there.

提交回复
热议问题