Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove reference of file Xcode?

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 same name as one of those that I had removed from my project (but the reference nor the file had been removed).

To make the long story short, my project tried using the reference to the old file, so I went through finder to delete the conflicting files. That solved the issue of which class was being reference. But the reference to the deleted files cause a warning in Xcode giving me a Missing File message.

Does anyone know how I can remove the old references in order to get rid of this warning?

like image 338
A Salcedo Avatar asked Apr 04 '11 22:04

A Salcedo


Video Answer


1 Answers

Go to Project > Build Phases > Compile Resources and select referenced Class and hit "-" .this Will delete reference And now Build Again.

like image 199
Emu Malik Avatar answered Sep 25 '22 11:09

Emu Malik