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

The iPad crashes but the iPhone works fine; the issue is with switching the UIViewController

I have a code feature to switch UIViewController, which works great on iPhone but crashes on iPad. It works fine at times but crashes at others. Can you assist me in determining what is wrong with it? I've included the complete code below. The crash…
Travgalax
  • 81
  • 1
  • 7
0
votes
1 answer

terminate called after throwing an instance of 'NSException' (gdb)

I've made an app with 6 months of work with no backups. It works fine on Simulator but on device it crashes. This is the error code: 2011-09-11 17:55:49.172 Apli[223:707] * Terminating app due to uncaught exception…
MariaEmp
  • 5
  • 5
0
votes
4 answers

Why an NSException error?

I have put the following code in...; NSDictionary *plainPart = [NSDictionary dictionaryWithObjectsAndKeys:@"text/plain",kSKPSMTPPartContentTypeKey, @"Hello,\n You've just received a new message from the iDHSB iPhone App.\n Here it is:…
pixelbitlabs
  • 1,934
  • 6
  • 36
  • 65
0
votes
0 answers

NSNull integerValue: Unrecognized Selector - Flutter IOS only

TL;DR I am getting an error only on IOS physical device when tapping certain buttons that excecute a certain line of code. I need to interpret the error and find the cause (why only on physical device?) I am getting this error: -[NSNull…
Tomas Ward
  • 854
  • 6
  • 23
0
votes
1 answer

App crashes immediately on iOS Simulator with os version 15 and up

I'm trying to run an app on iOS simulator with os version of 15.2 the app crashes immediately. I also trying running on a Simulator with os version of 13.7 and everything works. I would also like to point out that testing on a real device with os…
Keselme
  • 3,779
  • 7
  • 36
  • 68
0
votes
0 answers

CoreData error: 'NSInternalInconsistencyException', reason: Cannot set value for attribute with undefined type: property ... for optional UUID

I have a CoreData entity (named Canvas)which contains an attribute: selectedCardID of type UUID?. My CoreData entity is managed by my own NSManagedObject Subclass with the following line: extension Canvas { @NSManaged public var selectedCardID:…
santi.gs
  • 514
  • 3
  • 15
0
votes
1 answer

uncaught exception 'NSInvalidArgumentException' when selecting an Image

In my current app project, I have the ability to select an image. The functionality has been working well for a while. However, I am now getting the following error when I click on the image select button. I have tried to figure the the source of…
ramluro
  • 83
  • 2
  • 12
0
votes
1 answer

JaamSim crashing on Start up under Eclipse

I am really new to this and trying to get the JaamSim Tool running within Eclipse to run a Simulation for my Bachelors Thesis. When ever I try to run the config im getting an libc++abi.dylib: terminating with uncaught exception of type NSException.…
MF1893
  • 13
  • 3
0
votes
0 answers

App crashes when tapping on WKWebview textfield

Hi I am working on upgrading Xcode project from iOS 13 to iOS 14 and using xcode 12.1 When I run the application webview will be opened inside app and get login screen. When I tap on textfield app crashes with below error. Xcode is not showing where…
Nagarjun
  • 6,557
  • 5
  • 33
  • 51
0
votes
1 answer

NSInvalidArgumentException not being caught in code

I'm using selectors to dynamically call functions in Objective-C. My problem is that my @try/@catch block is not catching the exception if I pass an non-existent function name. In the console I get an uncaught NSInvalidArgumentException and further…
jim
  • 8,670
  • 15
  • 78
  • 149
0
votes
1 answer

Thread 1: "-[Xylophone.ViewController buttonClicked:]: unrecognized selector sent to instance 0x7ff83a6074e0"

Exception NSException * "-[Xylophone.ViewController buttonClicked:]: unrecognized selector sent to instance 0x7faa47409400" 0x0000600002148690 I'm trying to make a xylophone app in which the buttons would play different sounds, there are 7…
glazeboy
  • 25
  • 1
  • 5
0
votes
4 answers

iphone : proplem with table view

I have a problem with table view in iphone .. i can't figure out why it crashes everytime will here is the code - (void)viewDidLoad { [self checkAndCreatePList]; NSMutableDictionary* plistDict = [[NSMutableDictionary alloc]…
Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64
0
votes
1 answer

terminate called after throwing an instance of 'NSException'

i try to run my app, but i have got an exception thrown, in the console i have got this : 2011-05-05 00:18:50.984 myApp[2906:207] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSArrayM: 0x6b8b780> was…
Luca
  • 20,399
  • 18
  • 49
  • 70
0
votes
1 answer

Alamofire sending a request to an API 'NSInvalidArgumentException'

i am using this code to send an image and text to an api: func uploadImageAndData(_ url:String,parameters1:Parameters,headers1:HTTPHeaders,images:[UIImage]){ Alamofire.upload(multipartFormData: { multipartFormData in //…
Jhon
  • 99
  • 3
  • 15
0
votes
2 answers

Terminating With Uncaught Exception Of Type NSException Timer Swift Crash

I am trying to use the timer class in swift, but my app keeps crashing with the signal SIGBART and also terminating with uncaught exception of type NSException errors. Please help. Thanks. I have narrowed it down to being because of my timer, but I…
Derick Mathews
  • 347
  • 2
  • 3
  • 12