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 Simple iPhone App (iOS7) Refactoring into a Model Readonly Attribute

James Hughes
James Hughes
1,366 Points

Crystal Ball - after changing classes, get compile error.

Hi - after following the video, and creating my THCrystallball.m & h - (mines called JH) i can't compile the program. I don't get any errors, just a weird debug message, and what looks like memory conflicts. Any ideas?

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([JHAppDelegate class]));
    }
}

On the left hand side i have:

Thead 1; Queue: come.apple.main-thread 
0_pthread_kill with a line called JAE highlighted. 

Any ideas?

3 Answers

Thomas Nilsen
Thomas Nilsen
14,957 Points

Try adding an exception breakpoint :) That should point you towards the error :)

Add it like this: http://imgur.com/V1Hm2Cn

James Hughes
James Hughes
1,366 Points

Hi - so i added that, and didn't seem to help? This is the error i get: - Thanks!

My_ScreenShot

Thomas Nilsen
Thomas Nilsen
14,957 Points

If you changed classes, did you remember to "reconnect" everything in the storyboard?