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 Auto Layout in iOS The Constraint Equation Cassowary Algorithm

Bien Pham
PLUS
Bien Pham
Courses Plus Student 4,478 Points

iOS app crashes on actual hardware on initial launch

I like to test the app on my iPhone 6 but I started noticing that when I leave it on there for a few days, eventually it crashes on initial launch. I like to to unplug it from my mac and show friends my apps and what I learned when I'm away from my computer. Is there a life or expiration date to the apps being tested on the hardware? Is it suppose to crash after a few days?

1 Answer

David Lin
David Lin
35,864 Points

No, there is no life or expiration date to apps. It's possible that your app is crashing due to any number of fatal errors during the start-up sequence. If you run the app from XCode, it should halt at the place where an error occurs and from the stack trace, you can troubleshoot the cause of your crash. Check out this course on debugging for iOS: Debugging for iOS