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

Issa Issou
320 Points@autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); }
why do i keep get this when i run my app
@autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); }
2 Answers

John W
21,558 PointsThis is where Objective-C diverges from C. Since Objective-C is just C with add ons, it has to call the main C-function to start the program. The line you included is automatically generated for you by XCode to actually hook up the iOS/OS X components.

Amit Bijlani
Treehouse Guest TeacherYou probably have a runtime exception which means there's a bug in your app causing it to halt the execution of your app. Usually it halts execution in the main because it is the starting point for your app. You can set an exception breakpoint for it halt execution where the problem is actually occurring in your code. To learn about debugging check out the Debugging Basics video.

Aaron Ward
2,872 PointsHello Amit, I am building the crystal ball app and I got this same message right after I added the animation. Any advice? Should I skip over to the Debugging Basics video now?

Amit Bijlani
Treehouse Guest TeacherAaron Ward the debugging basics video will should you how to diagnose this or any other problem, so you can get a better idea of the problem.
Issa Issou
320 PointsIssa Issou
320 PointsThanks and what am i doing wrong because once it shows i can't do nothing in the simulator