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 Introduction to Table Views Sorting Contacts Into Sections Creating Sectioned Data

Aananya Vyas
Aananya Vyas
20,157 Points

there seems to be a sigabart error that I am unable to identify

https://github.com/aananya27/contactsApp here's the project, I tried to follow each step but somehow am stuck with a thread1 sigabart error "libc++abi.dylib: terminating with uncaught exception of type NSException" "uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier ContactCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'"

2 Answers

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello Aananya,

You're close! The issue is you're trying to find a table cell by name "ContactCell" in ContactListController.swift, but the table cell in the storyboard does not have that identifier set.

let cell = tableView.dequeueReusableCell(withIdentifier: "ContactCell", for: indexPath)

To resolve this, set the identifier on the table cell like this: Xcode

I hope this helps.

Aananya Vyas
Aananya Vyas
20,157 Points

thanks! it works :D!!!