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 trialTravis Trevisan
5,846 Pointssignal SIGABRT?
my 'Algorhythm' app is having trouble running in the simulator
I keep getting the error "signal SIGABRT" in the AppDelegate.swift file.
5 Answers
agreatdaytocode
24,757 PointsHi Travis,
Open up your simulator select iOS simulator menu and reset content and settings. Also check your storyboard file for orphan referencing outlets.
This should fix your problem.
Travis Trevisan
5,846 Pointstried reseting content and settings, also checked the storyboard file for orphan referencing outlets. no success =(
I tried resetting and beginning the project from scratch, but came into the same problem into the 3rd video =/
the error code appears in an early line of the AppDelegate.swift file
I file I have not edited =/
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7f84a0f1f8a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key aButton.'
agreatdaytocode
24,757 PointsCan you share the project with me via GitHub? or DropBox.
Travis Trevisan
5,846 Pointshere is a link to a zip file of the project http://we.tl/x7wcSJ6qNm
thank you!
agreatdaytocode
24,757 PointsJust got home.. I'm taking a look now.
agreatdaytocode
24,757 PointsOk Travis,
Here is what I did to fix the program.
- Open the storyboard file. Delete ALL referencing outlets for both the image and the button.
reconnect the IBOutlets @IBOutlet weak var aButton: UIButton! (drag this to the button) @IBOutlet weak var playlistImageView0: (drag this to the image)
- Remove the push segue and add another one. Don't forget to set the identifier to showPlaylistDetail
heinz meza
4,788 PointsI'll try this when i get home . but in the meantime please look at the error I get when my app crashes ...
Joseph White
5,189 PointsI had an orphaned outlet on the image which I deleted manually by removing the variable from the PlaylistMasterViewController instead of going to the connections inspector and removing it from there. Confusing -- hope this helps someone else.