I am making an app where the user gets daily book recommendations from an online database. This all works just fine on iPhone and iPod Touch, but crashes (SIGABRT) on iPad on launch (default.png is shown first).
The error that is traced in the console is “Terminating app due to uncaught exception ‘NSRangeException’, reason: ‘* -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'”. This happens on the iPad simulator as well.
Can anyone shed any light on this? I would be most grateful!
btw: I have 4.0 as Base SDK deployment target is 3.1.3
Putting a breakpoint on objc_exception_throw will let you find where exactly the problem occurs (you are trying to get an element from an empty array).