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
1
vote
1 answer

Swift 2 to 3 Migration Error (libc++abi.dylib: terminating with uncaught exception of type NSException)

One of my controllers is oddly causing a runtime error crash when it didn't in Swift 2. The error I get is. libc++abi.dylib: terminating with uncaught exception of type NSException I attached a screenshot showing that I have all my interface builder…
Joseph Astrahan
  • 8,659
  • 12
  • 83
  • 154
1
vote
3 answers

Present ImagePickerView causing crash

Here is my code, a simple class with a view created in storyboard that contains a button to present the imagePickerView. The imagePickerView gets presented and then the app crashes with libc++abi.dylib: terminating with uncaught exception of type…
MikeG
  • 3,745
  • 1
  • 29
  • 51
1
vote
2 answers

[UIDeviceRGBColor countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x16577e10 -> A Crash After makeKeyAndVisible

I get the following error when debug and found that after this line, the app crash: [self.window makeKeyAndVisible]; When attempt to run on device via Xcode 8.0, the following error log appears: 2016-10-03 11:03:59.827994 Slots[5972:1125279]…
itzo
  • 1,220
  • 14
  • 18
1
vote
0 answers

How to get line number, method name, and class name when crash occurs using Objective C

I am developing an app in which I have to track crashes. There is a restriction that I can't use any third party source like Twitter's Fabric framework to handle crash logging. Currently I am only able to get the reason for crash. I am not able to…
Rahul
  • 5,594
  • 7
  • 38
  • 92
1
vote
0 answers

iOS development - NSException is thrown when I try to end editing and dismiss the keyboard

This is the Swift code that I'm using to dismiss the keyboard whenever the user taps anywhere on the screen: override func touchesBegan(touches: Set, withEvent event: UIEvent?) { self.view.endEditing(true) } When I tap on the text…
J164
  • 83
  • 8
1
vote
0 answers

strange EXC_BREAKPOINT swift

I've got the following crash report : Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001000b6b44 0 Spersy 0x1000b6b44 specialized BL_BaseTabBarController.(setUpTabBar in…
Nikita Semenov
  • 2,111
  • 4
  • 18
  • 31
1
vote
1 answer

Try Catch Statement doesn't work on Simulator (but works on iPhone!!!)

I have an Exception catching statement in my code, like the following: @try { for(NSDictionary* s in users) { do something .... } } @catch (NSException * exception) { NSLog(@"APIRequesetBase readUserInfo: Caught…
privateson
  • 395
  • 4
  • 12
1
vote
1 answer

NSUnknownKeyException error in app delegate

My app is crashing on every screen at app delegate where ever I have used label and textfields. When the tags are removed app is working fine but is crashing again when connected to swift file again.
1
vote
1 answer

Swift 2 terminating with uncaught exception of type NSException

I am getting an NSException error which I cannot understand since using the updated swift 2. I am aware that the exception is common and in itself doesn't really help. I have included the code I am using. The code is from the start of a calculator…
Mark Searle
  • 55
  • 1
  • 7
1
vote
1 answer

Fetch core data, NSException error

I working on an app using core data. The greatest part of the implementation worked out well but at the very very very last moment I get an NSException error. I can fetch the core data and put them in a string, but I can't put it in a textView,…
1
vote
2 answers

NSInternalInconsistencyException: Invalid Update using tableview CoreData

I am using a tableView to display a list of people. I am trying to add an alert to confirm that the user actually wants to delete the person and to prevent mistakes. However, when I try to delete the person that is stored with CoreData, there seems…
1
vote
1 answer

Uncaught exception of type NSException

I'm beginning to teach myself Swift, I am truly a beginner and I am working on a calculator app just as an intro project. I keep getting a thread error and it is terminating with an uncaught exception of type NSException. I've read in several places…
1
vote
2 answers

iOS Application Crashes NSUnknownKeyException When Trying to Load View with UIPickerView

I have an application that has a UIPickerView. The second I try to open the view in which it is contained, the application crashes with NSUnknownKeyException. Here's the log: 2015-08-01 17:43:50.572 Patient Consent Project[1748:47245] ***…
1
vote
0 answers

How to assign firedate to datepicker

I am trying to create an app. I need to send a notification daily at a time the user decides I have used a date picker for the user to decide when they get the notification. I am also found a way to get it repeat but now I am having trouble…
1
vote
1 answer

How to replace NSUncaughtExceptionHandler with definition in Breakpoint navigator?

So far I used NSUncaughtExceptionHandler within code: void uncaughtExceptionHandler(NSException *exception) { NSLog(@"*************************************************"); NSLog(@"CRASH: %@", exception); NSLog(@"Stack Trace: %@",…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358