Herbie999
Herbie999

Reputation: 315

AppDelegate.m and ViewController.h files have turned red in my xcode project navigator

I reopened my xcode project and the AppDelegate.h and ViewController.m files are red. The titles are there but they seem to be empty. Does anyone know how to retrieve these files, or are they lost? I had a decent amount of code in there so I was hoping not. I'm new to this so any basic steps type help would be greatly appreciated. Thank you!

Upvotes: 1

Views: 1361

Answers (2)

Dana K
Dana K

Reputation: 380

Sounds like the files its looking for are not in the same location as they were the last time you opened the project. Find the files in question, add them back to your project, and delete the red links.

Upvotes: 0

iDev
iDev

Reputation: 23278

Check if you have deleted it by mistake. Check the physical folder to make sure the file is there. If it is there, remove the red links from Xcode and try adding it again.

Upvotes: 1

Related Questions