When I make an error in Xcode's playground feature, the whole app will close, with the problem report including the error; for example,
UNCAUGHT EXCEPTION (NSInvalidArgumentException): -[DSAFastToken copyWithZone:]: unrecognized selector sent to instance.
I am running Xcode 6.1.1 on OS X Yosemite.
Related
When 'Scribble' is enabled in the Apple Pencil Settings, tapping on an input or textarea field in my Cordova app causes it to Terminate with this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[DOMRange asDomRange]: unrecognized selector sent to instance
How can I use Scribble in my text fields?
There is a strange crash issue happening with Xcode whenever I am trying to do automatic conversion to ARC.
When I do the following
Refactor--> "Convert to ObjectiveC ARC", I am getting the following error crash.I tried it with Xcode 6.1.1, Xcode 6.0.1, Xcode 6.2
ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-6528/DVTKit/ViewControllers/DVTViewController.m:152
Details: view should be an instance inheriting from DVTControllerContentView, but it is <NSView: 0x7ff3afda9d10>
I've just upgraded to XCode 6 (iOS 8 SDK) and I am getting the following warning and error in the console that did not occur in XCode 5 (iOS 7 SDK):
2014-06-08 08:58:57.266 ColorChaos[3250:138871] SetAppThreadPriority: setpriority failed with error 45
2014-06-08 08:59:27.303 ColorChaos[3250:138871] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSSetM addObject:]: object cannot be nil'
The SetAppThreadPriority seems to be just a warning because the app continues to run, but a few seconds/touches in it crashes with the NSInvalidArgumentException error.
Has anyone else experienced anything similar after updating? The error is not occurring in my code (I don't think), it highlights the line in main.m with Thread 1: signal SIGABRT.
Thanks in advance.
EDIT: I should note I've just realised XCode 5 is still installed along side XCode 6 and I can still compile and run my code in that so it's not really an issue any more but it would still be nice to know if it can be fixed.
I was running into a similar problem. If you're running off an iOS simulator make sure it's set to iPhone 5 or above. Swift code won't run on iOS 4 which, I believe, is the default emulator device for XCode 6.
I'm working with the source code for BonjourWeb using iOS 6 and Xcode 4.5.
BonjourWeb Source code for Xcode
In BonjourWebAppDelegate.m, the setting for showCancelButton:YES in the "applicationDidFinishLaunching: application:" method causes the program to crash when the Cancel button is clicked in the app's browser with the error: 2012-10-27 13:07:45.309 BonjourWeb[1762:c07] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[NSNetService dictionaryFromTXTRecordData:]: cannot convert nil to a dictionary.'
How can I rectify this to work properly?
Thank you.
Don
Resolved. The call to the method causing the problem is not needed.
I am trying to run my app for IPhone in xcode 4.2 and it keeps shutting down. From what I've heard, SIGABRT can come from many places. I have tried restarting the computer and resetting the iOS simulator already. The build succeeds, but then pops out this error before I can test the app. The error is in the main.m file.
0x00001fa8 <+0152> mov -0x38(%ebp),%ecx
Thread 1: Program received signal: "SIGABRT"
SIGABRT means that there was an error thrown somewhere in your code. This could happen due to a wide range of problems. Try setting an exception breakpoint in the breakpoint navigator or manually set breakpoints yourself to see where the exception was thrown. Also you can look in the debugger console to see where the exception came from.