Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

App crashing all of a sudden

I recently started the testing the app on my old iPhone 5, and it was working fine on both the phone and simulator (before testing on real device). Then all of a sudden, it started crashing due a view controller, but I don't understand what it means. Here is what it gives me:


2014-07-11 09:44:01.677 tap counter 1[941:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ThirtySecondViewController 0x146179d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key background.'

*** First throw call stack:

(0x2f9f4e83 0x39d516c7 0x2f9f4b89 0x303343b7 0x30345ffd 0x2f9647e9 0x324d84df 0x3243a0fb 0x3229bb59 0x3217d79d 0x3217d719 0x322275cf 0x32263c97 0x322625c5 0x32261631 0x3243d47b 0x321adda3 0x321add3f 0x321add13 0x32199743 0x321ad75b 0x321ad425 0x321a8451 0x3217dd79 0x3217c569 0x2f9bff1f 0x2f9bf3e7 0x2f9bdbd7 0x2f928471 0x2f928253 0x346622eb 0x321dd845 0x38081 0x3a24aab7)

libc++abi.dylib: terminating with uncaught exception of type NSException81

What does it mean by "Key background". The "ThirtySecondViewController" was working perfectly in the simulator, but is no longer, and had direct code copy from another view controller that serves the same purpose. Please help me, because I plan to release the app in a couple of weeks. Anything will be helpful.

Posted on Jul 11, 2014 9:25 AM

Reply
4 replies

Jul 11, 2014 7:56 PM in response to JSCX5

You're not giving us a lot to go on here so helping id difficult. If you were able to load the code into your iPhone then you are a member of the paid developer program, you might be better servred asking in the paid developer forums. You paid for it you might aw well use it.


In the meantime I'm unclear as to if the app is now crashing in the simulator also or does it just crash on the iPhone? If it was working and then it stopped somthing must have changed, some edit to the code (either intentional or not) .


Are you using key-value coding? It appears from the little you have supplied that your are trying to set a value in an instance of the class ThirtySecondViewController with the key 'background' but that key is undefined.

Jul 11, 2014 10:30 PM in response to Frank Caggiano

Sorry, I thought I gave enough info, and I didn't know there was a paid developer forum. I actually got it fixed and it hasn't reappeared so far. It was a image that I was using as a background that caused it to crash for some reason. The image wasn't named "background" and went unchanged for the last 1 1/2 months, and the application worked until recently.


Sorry for sounding really desperate.

Jul 12, 2014 6:57 AM in response to JSCX5

No you're description of the problem was not complete. It is also a good idea if you discover a solution that you post back so that others do not spend time on your post.


As you are a paid developer you should take some time to learn about all the services you are paying for.


Finally it would help all users of this site if you were to describe the solution you found, this way if someone comes across this in the future they will be able to learn from your post.


Though I have to say the description of your 'solution' seems a bit dodgy. So did you replace the image, change to a different image, what? And if this just popped up out of the blue how can you be sure it won;t happen again?


Finally the error message isn't telling you the image name was 'background', Background is the name of the key.


regards

App crashing all of a sudden

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.