I'm getting this crash
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'A contact and its snapshot should both be non-unified.'
when trying to pick a contact using $cordovaContacts.pickContact(). The issue only happens when the picked contact is a linked one and it only occurs in iOS9.
Found this workaround but it's for native apps and not good due "bad privacy practice"
Anyone knows a solution when using ngCordova?
Related
I have a date picker in my app and it was working fine up until I updated to the latest Xcode.
Now when I use it it crashes and gives this error.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_UIDatePickerMacCompactView _setTextColor:]: unrecognized selector sent to instance 0x11135ae50'
This is an app that is on iOS and Mac OS using catalyst.
The date picker works fine on the iOS devices but crashed like this on the Mac version.
Has anyone got any idea on what may be happening, I cannot find the UIDatePickerMacCompactView in there files anywhere.
Just by reading the error message, are you setting the text color as UIColor instead of NSColor by chance. I have little experience with Catalyst so I might be wrong but that's my 2 cents.
I am getting this Error :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MasterViewController setRefreshControl:]: unrecognized selector sent to instance 0x2681e0'
How to resolve this issue because in simulator my app is running but on device with the same code my app is not running.
I hope your simulator is iOS6 Simulator and the device in which you tried to run may have a lower OS version ..right?
.
From UIRefreshControl Class Reference,
Availability : Available in iOS 6.0 and later.
Refresh control is new to iOS6. So if you want to support iOS5, the best thing to do is check if the refresh control class exists (you can use NSClassFromString ), and if it doesn't exists either not use it or use an alternative.
I wanted to set the setLaunchPath: #"/bin/ps" for my iPhone application what actually it will do? Application crashes and will give the error as - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
* First throw call stack:
"setLaunchPath" exists in NSTask under MacOS... perhaps it exists under iOS, but it is not documented and certainly wouldn't be allowed for sandboxed apps that get submitted to the Apple App Store.
I have created Core data app. It was working fine now it is giving exception
Terminating app due to uncaught
exception
'NSInvalidArgumentException', reason:
'Cannot create an
NSPersistentStoreCoordinator with a
nil model'
Whats the problem?
It can't find the generated .mom or .momd file. I would recommend deleting the instance of the app on the iPhone or iPhone simulator and re-running. You don't happen to have separate programs that rely on one Core Data model, do you?
In my app I send a request to get images from flickr. I have went
through my app step-by-step with a breakpoint and found the app
crashes at this line in TTURLRequest.m:
} else {
return [self.urlPath md5Hash];
}
I get this error in the debugger:
*** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason:
'-[NSCFString md5Hash]: unrecognized
selector sent to instance 0x74409e0'
Does anybody know what is causing this?
Thanks
check your "other linker flag" settings. This could happen if you have not set your "other linker flags" properly. It has to be -ObjC and -all_load. any mistake in uppercase or lowercase will also cause this problem