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

Getting Exception When using Facebook login in Swift

I am using Xcode Version 9.0.1 (9A1004) and i set the compiler to Swift 3.2 I installed Facebook Login with Cocoapods and everything compiles without any error but whenever i run it in the simulator i click on the login button it crashes with only…
gaus
  • 23
  • 7
0
votes
1 answer

NSException when displaying UIAlertController in own window

I am trying to show a UIAlertController over a UISplitViewController. I have tried everything that I have found on this site, and am sticking with an extension found here. extension UIAlertController { func presentInOwnWindow(animated: Bool,…
Siriss
  • 3,737
  • 4
  • 32
  • 65
0
votes
1 answer

libc++abi.dylib: terminating with uncaught exception of type NSException - Do I need to fix the Launch Screen or Viewcontroller?

I'm designing my first App, and am fairly new to Swift. My app will build successfully, but won't go past the launch screen and gives the error "libc++abi.dylib: terminating with uncaught exception of type NSException". The other similar questions I…
Daagoodr
  • 25
  • 1
  • 4
0
votes
1 answer

NSException Error - Swift 4

stack overflow community. Please don't mark this question as a duplicate as I have seen all the other posts regarding this and have pretty much gone through most of the famous solutions. Currently, I have some code that allows a user to send…
Rohan Vasishth
  • 417
  • 6
  • 19
0
votes
0 answers

Swift NSExpression error handling

I was wondering if there was a way to catch the NSInvalidArgument error that is thrown when a NSExpression is invalid; such as: “4+”. I have trying doing a guard, if let, but both seem to fail and the exception is still thrown. I know that there…
Torewin
  • 887
  • 8
  • 22
0
votes
0 answers

terminating with uncaught exception of type NSException (objective C)

The program closes at Objective-c. Please help solve my problem. Error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0x115289cf0' enter image…
0
votes
0 answers

Swift Try Catch issue

I'm new to Swift.. I'm trying to do a try catch to make sure I'll not have any problems when I try to remove a row from my tableview and from my notes array. Here's the code override func tableView(_ tableView: UITableView, commit editingStyle:…
luidgi27
  • 324
  • 2
  • 15
0
votes
0 answers

Terminating With Uncaught Exception of Type NSException - TableView

I'm trying to create an app where the user clicks a button on the first page and it goes to another page with a table on it. But when I click that button, all that comes up is an error: libc++abi.dylib: terminating with uncaught exception of type…
Sarah
  • 11
  • 1
  • 4
0
votes
1 answer

NSException in table view core data

Im developing an app that shows basic info from a coredata db, I have the db saving info when hit save button, but when I want to show the data in another view in a table, I get no errors, but an NSexeption> Terminating app due to uncaught…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
0
votes
0 answers

Am getting this Exception before entering the appDelegate

I think it is from userDefaults, but not sure why? -[__NSCFData _getCString:maxLength:encoding:]: unrecognized selector sent to instance 0x61100002ffc0 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:…
jeff ayan
  • 819
  • 1
  • 13
  • 16
0
votes
2 answers

iphone sdk beyond bounds NSException

I am having an "Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSArray objectAtIndex:]: index 24 beyond bounds [0 .. 23]'" I'm not sure how to put my .m on here without it being really long. Please let me know how i can…
Draken182
  • 3
  • 3
0
votes
1 answer

How to get complete error message in xCode?

I am getting the following error message in Xcode: libc++abi.dylib: terminating with uncaught exception of type NSException This is all that is shown. How can I see a stack trace? Is there some Xcode option I can enable to see more information about…
mlecoz
  • 409
  • 4
  • 17
0
votes
2 answers

terminate called after throwing an instance of 'NSException' error

Can you please help me, my application worked well, but when i did a modification on it, (i don't remember what kind of modification) i got this message in the console: [Session started at 2010-11-21 17:15:36 -0500.] 2010-11-21 17:15:37.472…
Charles
  • 1
  • 1
  • 1
0
votes
1 answer

Terminating with uncaught exception of type NSException- Navigating to Another View Controller Programmatically

When I tap on the button, I want to bring up the Company Details view controller programmatically (using no storyboard), but I'm getting an NSException error for the button's function. I believe CompanyDetailsViewController() is null and I'm not…
14wml
  • 4,048
  • 11
  • 49
  • 97
0
votes
0 answers

Exception : *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle

I am trying to use .xib files in iOS10+ in table View Controller again and again to load static NSString *reuseIdentifier = @"SessionTableViewCellIdentifier"; SessionTableViewCell *cell = (SessionTableViewCell*)[tableView…
Hitesh Mor
  • 72
  • 1
  • 11