Questions tagged [nsexception]

NSException is a Mac Developer Library class used to implement exception handling and contains information about an exception.

NSException is a Mac Developer Library class used to implement exception handling and contains information about an exception.

It is available in OS X v10.0 and later and is declared in NSException.h

259 questions
0
votes
0 answers

Tab bar button throws NSException error, why?

Issue I am using Xcode 10, Swift 5. I tried to rename some variables and arrays. I changed them all back to the original name though. After I did this my tab bar button throws an error at AppDelegate: Thread 1: signal SIGABRT console…
user8540450
0
votes
1 answer

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

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { let alert = SCLAlertView() alert.addButton("A",target:self,selector:…
Qizijia
  • 31
  • 6
0
votes
2 answers

MFMailComposeViewController bringing up NSException

I have done a search for this problem, and have not found an answer, which is leading me to write my firs tquestion here. The problem is when I press the button which calls the metho below, I get an exception on this line: [self…
0
votes
2 answers

Bool method to check user input

Hi everybody i am trying to make a boolean method that will return value depending upon the user input for the field when submit button is clicked. - (BOOL)checkuser:(NSString*)input { bool result = NO; if ([input…
Amrit
  • 423
  • 6
  • 22
0
votes
2 answers

NSInternalInconsistencyException: Couldn't update the Keychain Item

After adding the line to set kSecAttrAccessible to kSecAttrAccessibleAlways to make the keychain accessible even when the screen is locked I started seeing this error. Normally it comes when keychain sharing is not configured, but my keychain…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
0 answers

iOS app crashes when closing with NSException

I had a working iOS app with Jukebox music library and background audio. However, an hour after everything was working well, the app started to crash with libc++abi.dylib: terminating with uncaught exception of type NSException every time I close…
SergeH
  • 608
  • 1
  • 5
  • 20
0
votes
0 answers

Crashes when implementing Geofencing. _NSCFNumber getCString:maxLength:encoding:]: unrecognized selector sent to instance

Not really understand what the exception is and there is no back trace for me to look into it. - (CLCircularRegion *)regionWithGeotification:(Geotification *)geotification{ NSLog(@"Set region with geotification"); ********* CLCircularRegion…
joey
  • 73
  • 2
  • 14
0
votes
2 answers

Twitter integration using oAuth error

Hello I have tried to post a tweet from my application. When I press on the button "post tweet" the authentication window (login window by twitter) opens, but when it is loaded my application just exits. The following error occurs in the…
Tjekkles
  • 5,352
  • 8
  • 36
  • 53
0
votes
1 answer

Swift Interesting NSExceptionError When Passing Data Forward

I have a really simple question here that I cannot manage to solve. This code works perfectly fine, leading me to the fifth view controller. @objc func OnbtnPlusTouched() { let uivc = storyboard!.instantiateViewController(withIdentifier:…
Ege Akkaya
  • 176
  • 1
  • 13
0
votes
2 answers

Getting Thread: signal SIGABRT

Building an app with a chat feature and getting a SIGBRT error. It doesn't seem to be talking to the Firebase database. I checked all my outlets and they seem to all be intact and I didn't see any broken outlets. the error I'm getting in the debug…
0
votes
1 answer

uncaught exception 'NSInvalidArgumentException', reason: '-[SubResultComponent setDate:]: unrecognized selector sent to instance 0x60000046b640'

I have an error to which I am not sure on how to fix. Here is there error Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SubResultComponent setDate:]: unrecognized selector sent to instance 0x60000046b640' Here…
0
votes
0 answers

This class is not key value coding-compliant for the key ProductsCollection.'

I am getting this exception: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ProductsCollection.' I read previous posts about this,…
Ofri
  • 289
  • 5
  • 17
0
votes
2 answers

Swift 4: @IBOutlet UITextView crash

I use a table view embedded in a view controller. I stored in the table view some items like UITextField, UISlider, and so on. When I connect these items in the class, the app crashes on the UITextView outlet. @IBOutlet weak var…
Enzo
  • 73
  • 2
  • 9
0
votes
1 answer

UIWebView throwing NSUnknownKeyException iPad

I have a tab bar application. Everything works normally, and I can switch between tabs fine and everything, except when I switch to my second tab ProductViewClass the view doesn't update and it spits out the console output below. I have nothing in…
SeniorShizzle
  • 984
  • 1
  • 11
  • 27
0
votes
2 answers

NSException when deleting UITableViewCell

I am using the open-source library on Github MGSwipeTableCell (https://github.com/MortimerGoro/MGSwipeTableCell) for revealing buttons when swiping cells of a table view. A crash occurs when I tap a button revealed by swiping. I define the closure…
mlecoz
  • 409
  • 4
  • 17