1

I keep trying to launch my app and it keeps "terminating with uncaught exception of type NSException" and sending me from the simulator back to this xcode screen: ![enter image description here][1]

I see that the problem is in the first thread but i dont know where at in my code or event paths this corresponds to.

here are the other parts of the 1st thread that contains the error: enter image description here

The debugger says this:

2013-11-21 18:59:23.330 Bluetooth_RSSI_test[24377:a0b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key set1m.'

Here is my code for that includes set1m(Note that aValue is a property(nonatomic, strong) of type NSNumber and has been synthesized):

in .h file
- (IBAction)set1m:(id)sender;

in .m file

- (IBAction)set1m:(id)sender
{
    aValue = RSSIvalue;
    self.RSSIat1m.text = [NSString stringWithFormat:@"%@", aValue];
}
crthompson
  • 15,653
  • 6
  • 58
  • 80
ian
  • 1,002
  • 2
  • 12
  • 29
  • i think you have to give a more detailed explanation – hamobi Nov 22 '13 at 17:45
  • At the bottom of the call stack view there is a slider. Move it to the far right to expand your thread list. This will show you the calls between 11 and 0. – Szabi Tolnai Nov 22 '13 at 17:46
  • 4
    copy the exception from your log please... that will usually tell you a better place to start – logixologist Nov 22 '13 at 17:47
  • See http://raywenderlich.com/10209/my-app-crashed-now-what-part-1 – rmaddy Nov 22 '13 at 18:05
  • See this answer - http://stackoverflow.com/questions/8072135/how-to-track-down-cause-of-sigabrt/8072273#8072273. But right off the bat, the aValue is probably a primitive, try using a "%d" instead of "%@" when creating your string with format – Eugene Nov 22 '13 at 18:06
  • i just tried using "%ld" and referred to aValue as (long)aValue, but i'll try that too – ian Nov 22 '13 at 18:08
  • it says i cant bc %d is of type int and my argument is of type NSNumber – ian Nov 22 '13 at 18:10

1 Answers1

2

Check the outlet connected to IBAction. PS: i can't comment thats why i put it as answer.

  • Yeah i tracked all the paths and everything seems to be in the right place. I think it has to do more with the type im sending it meaning aValue – ian Nov 22 '13 at 18:24
  • Ok i had the same issue, it was because the button action is not properly connected. – Aravind Bhuvanendran Nov 22 '13 at 18:31
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient [reputation](http://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](http://stackoverflow.com/help/privileges/comment). – crthompson Nov 22 '13 at 18:36
  • @paqogomez i know but unfortunately my reputation is not sufficient to make a comment. – Aravind Bhuvanendran Nov 22 '13 at 18:39
  • Then turn your post into a real answer. Flesh it out and make it relevant. :) – crthompson Nov 22 '13 at 18:41
  • Well Aravind I will up your reputation because you were right! I ended up deleting the button and outlet connections and remade them and it worked. Thanks! – ian Nov 22 '13 at 18:48