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
Related
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?
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?
I have an iPhone app that uses the json-framework. I moved some of the code, including the json-framework source, from the main project to a static library. When I did this, the json-framework stopped getting compiled into the binary (double checked with class dump). This causes a nasty error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString JSONValue]: unrecognized selector sent to instance 0x43897f0'
Everything else in the static library continues to function properly.
Apparently, categories and static libraries don't work unless you sprinkle the magic dust on the linker flag. According to a Technical Q&A, you have to add the -ObjC linker flag to the main project (not the library, as stated in the Q&A).