As the title suggests I am getting the error that two view controllers have the same identifier but the problem is, they don't! I have checked through all my storyboards multiple times and never saw any with the identifier! The full error is
Two view controllers have the same storyboard identifier "IAC".
Not only that, but there are no storyboards with the identifier "IAC". Its possible I may have named one that a long time ago but their certainly aren't any now. I also just updated Xcode to the ios 7.1 SDK and it's possible that's part of the error. Does anyone know why?
A storyboard ID does exactly what the name implies: it identifies. Just that it identifies a view controller in a storyboard file. It is how the storyboard knows which view controller is which. Now, don't be confused by the name.
Step 1: Set a Storyboard IDIn the Storyboard, select the view controller that you want to instantiate in code. Make sure the yellow circle is highlighted, and click on the Identity Inspector. Set the custom class as well as the field called "Storyboard ID". You can use the class name as the Storyboard ID.
A view controller manages a single root view, which may itself contain any number of subviews. User interactions with that view hierarchy are handled by your view controller, which coordinates with other objects of your app as needed. Every app has at least one view controller whose content fills the main window.
In that case, press Command + Shift + F
and then type the identifier that is being mentioned in the Warning / Error area.
Here after you search there will be list of matches, in that select Storyboard icons, and your answer lies there.
remove derive data from Xcode -> Prefrences -> Locations -> DerivedData and rerun the project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With