Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Self-Destructing Message iPhone App Designing and Starting the App A Storyboard with a Tab Bar Controller

Andrew Brotherton
Andrew Brotherton
7,515 Points

I'm getting a prototype cells must have reuse identifiers error when I try to run the app

I deleted everything but the run on the app, I've got everything else lined up but getting the error prototype cells must have reuse identifiers

12 Answers

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

Can you post the whole log? Everything shown on the console area.

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

Make sure your MainStoryboard is being loaded correctly by checking the project file.

Andrew Brotherton
Andrew Brotherton
7,515 Points

It opens without any issues? I don't know how I should check the project file? What should I look for?

 Vladimir Cezar
 Vladimir Cezar
7,710 Points

On the led panel (the Project navigator), click on the project icon. It should be the root of the file tree. Then, on the left, on the General Ta under Development Info, click on Main Interface and verify that main Storyboard is being loaded.

Francisco Navarro
Francisco Navarro
14,185 Points

Hi!

To get rid of this error I think you have to give a name to the cell identifier. Go to the main.storyboard, click on the cell of the TableViewController you are using and on the right Xcode size press "Show the attributes inspector" and fill the "Identifier" gap. Hope this help

Andrew Brotherton
Andrew Brotherton
7,515 Points

I figured out that error but now getting a terminating with uncaught exception of type NSException

Andrew Brotherton
Andrew Brotherton
7,515 Points

libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Andrew Brotherton
Andrew Brotherton
7,515 Points

return UIApplicationMain(argc, argv, nil, NSStringFromClass([THAppDelegate class])); Thread 1: signal SIGABRT

Andrew Brotherton
Andrew Brotherton
7,515 Points

2014-09-04 15:07:00.197 Ribbit[64767:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/andrewbrotherton/Library/Application Support/iPhone Simulator/7.1/Applications/C577DF17-1060-4B52-8219-90645144CE2D/Ribbit.app> (loaded)' with name 'MainStoryboard'' *** First throw call stack: ( 0 CoreFoundation 0x017fe1e4 exceptionPreprocess + 180 1 libobjc.A.dylib 0x015698e5 objc_exception_throw + 44 2 CoreFoundation 0x017fdfbb +[NSException raise:format:] + 139 3 UIKit 0x004deb7b -[UINib instantiateWithOwner:options:] + 951 4 UIKit 0x004e0ada -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 165 5 UIKit 0x0022961b -[UIApplication _loadMainNibFileNamed:bundle:] + 58 6 UIKit 0x00229949 -[UIApplication _loadMainInterfaceFile] + 245 7 UIKit 0x0022854e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 543 8 UIKit 0x0023cf92 -[UIApplication handleEvent:withNewEvent:] + 3517 9 UIKit 0x0023d555 -[UIApplication sendEvent:] + 85 10 UIKit 0x0022a250 _UIApplicationHandleEvent + 683 11 GraphicsServices 0x037dff02 _PurpleEventCallback + 776 12 GraphicsServices 0x037dfa0d PurpleEventCallback + 46 13 CoreFoundation 0x01779ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53 14 CoreFoundation 0x017799db __CFRunLoopDoSource1 + 523 15 CoreFoundation 0x017a468c __CFRunLoopRun + 2156 16 CoreFoundation 0x017a39d3 CFRunLoopRunSpecific + 467 17 CoreFoundation 0x017a37eb CFRunLoopRunInMode + 123 18 UIKit 0x00227d9c -[UIApplication _run] + 840 19 UIKit 0x00229f9b UIApplicationMain + 1225 20 Ribbit 0x0000229d main + 141 21 libdyld.dylib 0x01e31701 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

Andrew Brotherton
Andrew Brotherton
7,515 Points

I deleted the program, recreated it, rechecked every connection, checked the program files, and got it to work.

Natalie Carlson
Natalie Carlson
3,727 Points

I had the same error. However, right after I changed the Main Interface in the Storyboard, I started messing around with the Shortcuts they give. [I love those!!!] While my cursor was still in the Main Interface field, I mistyped something and replaced the value, unknowingly, to 0 (zero). When I ran, it threw the same error that you had. I updated the Main Interface and I'm running perfectly!