Issue re: Your Second Swift 4 App

Hey everyone,

I’m on video #42: XCode Refactoring, and I refactored my AddItemViewController to ItemDetailV like Brian said in the video, but this completely messed up my app. I can no longer get into the code on ItemDetailV.swift (what was formerly AddItemViewController), instead the file is highlighted in red on the project navigator. Nothing is recognizing ItemDetailV and I don’t know what to do. I’ve tried using the clean function under Product, but that didn’t work.

This usually means the file name does not match what Xcode expects. Though it is supposed to work, sometimes the rename is made in the project, but not to the file itself. You can fix by going to the file in Finder and renaming it. Then reopen the project.

This worked perfectly! Thank you so much!

This topic was automatically closed after 166 days. New replies are no longer allowed.