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

Justin Whedon
Justin Whedon
19,811 Points

Build a Simple iPhone App With Objective-C - Have an error

I had taken this course and built a very cool quotes app, it's on the AppStore.

I went back in after about 7-8 months and added some quotes, now I'm getting this error...

Foundation -[NSLocalizableString length];

0x5dd181 <+6>: calll 0x5dd186 ; <+11> Thread 1:EXC_BAD_ACCESS (code=2, address=0xbf7daffc)

Screenshot: https://www.dropbox.com/s/6150pjmdqjlg3yi/Screenshot%202015-10-28%2015.19.43.png?dl=0

This error is making the app stick on loading screen while trying to test it in Simulator.

Any help would be amazing.

1 Answer

Did some searching and I think you are overshooting a pointer somewhere or maybe trying to write a string to memory space that's not available somehow. I'm not a perfect guy to help you but you should try and read the following links:

LINK1 LINK2 LINK3

As I've tasted for myself in Automation Programming Overshooting a pointer allocation can cause big problems - like a CPU STOP resulting in ... you are screwed my friend.

Check those links and report back as soon as you can. Would like to know what was the cause :)