Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error after installing Xcode 5.1: Two views in the same hierarchy have the same restoration identifier

I am now getting this error, that did not appear before, when I open my project with Xcode 5.1.

Two views in the same hierarchy have the same restoration identifier

I tried to change the ids but it's not removing the error. I also tried cleaning my build and deleting my derived data.

like image 653
Stacie Avatar asked Mar 10 '14 23:03

Stacie


1 Answers

I had the same problem, and I fixed it by deleting the restoration IDs.

For reference in case anyone else has this problem, select the error to find out which view on the storyboard is causing the problem. Once the view is selected (for me, it was four reusable cells in a UITableView) select the Identity Inspector. It's the third button from the left on the Utilities panel. Delete the restoration ID in the Identity section.

For me, the four cells in the table view had the word "item" in them. I couldn't find any other cells on my storyboard that had a restoration ID. After deleting the text, the error disappeared and everything worked for me.

I also tried changing the IDs to unique values and that removed the error as well.

like image 76
Mike1in3 Avatar answered Oct 08 '22 13:10

Mike1in3