How to remove reference of file Xcode?

前端 未结 6 2475
一整个雨季
一整个雨季 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:04

    To be safe from this error, make sure you Remove Reference on the file first before making any changes (outside XCode) on that file like deleting in folder, renaming, etc..

    To remove reference, in XCode, right click on the file then Delete. A pop-up will show asking if you want to move to trash or remove reference. However, that popup won't show if you made any changes before doing Delete on XCode.

    Just a tip!

提交回复
热议问题