SDWebImage sending unknown exception - ios

i have implemented and installed the framework correctly which it took me days, and also im new to this, the thing is i have this images from the web so i parsed it and then want to load those images using SDImageView, but after compiling im having this exception
-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x75b9730
[2456:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:placeholderImage:]: unrecognized selector sent to instance 0x75b9730'
when i remove the placeholder value this exception appear
-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x7555960
[2236:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:]: unrecognized selector sent to instance 0x7555960'
my code also goes like this:
NSString *imageLink = [currentData imageLinkFromWeb];
[cell.imageView setImageWithURL:[NSURL URLWithString:imageLink] placeholderImage:[UIImage imageNamed:#"image.jpg"]];

I ran into this too. For me it was caused by not adding the -ObjC linker flag to the build settings. Instructions for adding the flag are here. Good luck!

Related

iOS App is crashing due to NSInvalidArgumentException - [_NSConcreteBlockSinkObservation superlayer] error

Here is the detailed error description that I am receiving in debugger bar
*** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason:
'-[_NSConcreteBlockSinkObservation superlayer]: unrecognized selector
sent to instance 0x6000005a4000'
Why this is happening and what will be the solution to it?
Update:
I tried to remove some lines of code for testing, then I found another error like below
[__NSDictionaryM superlayer]: unrecognized selector sent to instance
0x6000008e8ee0

[__NSConcreteURLComponents queryItems]: unrecognized selector

I'm getting this error trying to run a bare project from the react-native init command, on an iOS 7.1 device.
This works on the iOS simulator, so I wonder if its an iOS compatibility issue?
The Movies example app works ok on this device.
```
2016-01-08 16:34:33.224 CouchTest[1210:60b] -[__NSConcreteURLComponents queryItems]: unrecognized selector sent to instance 0x14dacc10
2016-01-08 16:34:33.226 CouchTest[1210:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSConcreteURLComponents queryItems]: unrecognized selector sent to instance 0x14dacc10'
* First throw call stack:
(0x2edb0f83 0x39561ccf 0x2edb4917 0x2edb3203 0x2ed02768 0x10abaf 0xb47a1 0xb1735 0xb0c8b 0x39a49833 0x39a4981f 0x39a49777 0x2ed7b8a1 0x2ed7a175 0x2ece4ebf 0x2ece4ca3 0x33bea663 0x3163114d 0x9780d 0x39a6eab7)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
```
NSURLComponents queryItems is only available on iOS8+
That's why you are seeing the crash.
See the docs here for more info: https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSURLComponents_class/index.html#//apple_ref/occ/instp/NSURLComponents/queryItems
Setting an exception breakpoint will show you which class/method is making that call. Otherwise, it sounds like react-native is calling queryItems when it shouldn't.

Error library libUartLib.a (print Bluetooth)

Has anyone developed with the libUartLib.a library?
Because I have the following error:
-[CBCentralManager retrieveConnectedPeripherals]: unrecognized selector sent to instance 0x15e868d0
2015-10-02 17:13:29.265 DAPPER[2639:1705276] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CBCentralManager retrieveConnectedPeripherals]: unrecognized selector sent to instance 0x15e868d0'
*** First throw call stack:
(0x27a5186b 0x394bedff 0x27a57035 0x27a54c8f 0x279842b8 0x1018a3 0x27714a55 0x22cdbf 0x22cdab 0x231829 0x27a14595 0x27a12a8f 0x279651e9 0x27964fdd 0x30bc9af9 0x2bbca18d 0x1002b9 0x39be9873)
libc++abi.dylib: terminating with uncaught exception of type NSException
If you refer to the documentation you will that that method was deprecated in iOS 7 and has been removed in iOS 9. The replacement is retrieveConnectedPeripheralsSithServices so you either need an updated version of the library or to update it yourself if the author hasn't done so or to identify an alternative.

iOS App crashing on click of a text field or a textview

My app has many views with lot many forms. When I try to play with my app, clicking and scrolling every where. I do find my app crashes with an EXC_BAD_ACCESS when I try to click on a text field or a text view. I do get the following errors in different crashes:
1. `-[__NSDictionaryM keyboardDidShow:]: unrecognized selector sent to instance 0x16589960
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryM keyboardDidShow:]: unrecognized selector sent to instance 0x16589960'`
2. `-[__NSSetM keyboardDidShow:]: unrecognized selector sent to instance 0x15ee3650
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSSetM keyboardDidShow:]: unrecognized selector sent to instance 0x15ee3650'`
3. `-[NSISLinearExpression keyboardDidShow:]: unrecognized selector sent to instance 0x14760360
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSISLinearExpression keyboardDidShow:]: unrecognized selector sent to instance 0x14760360'`
4. `-[__NSCFString keyboardDidShow:]: unrecognized selector sent to instance 0x17e00e10
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString keyboardDidShow:]: unrecognized selector sent to instance 0x17e00e10'`
What could be the source of the crash?

Chartboost latest iOS SDK crashes when using example code

My iOS game is crashing when using Chartboost, but this wasn't happening 2 days ago, it worked fine then and I haven't changed anything.
I am doing the following:
[Chartboost startWithAppId:#"<<AppID>>" appSignature:#"<<Signature>>" delegate:self];
[[Chartboost sharedChartboost] showInterstitial:CBLocationHomeScreen];
I have removed the AppID and Signature for security reasons, but in my code they are the correct values
This crashes with the error:
2014-06-13 10:09:53.655 3D Line[7903:890b] -[__NSArrayI objectForKey:]: unrecognized selector sent to instance 0x17801e200
2014-06-13 10:09:53.684 3D Line[7903:890b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI objectForKey:]: unrecognized selector sent to instance 0x17801e200'
*** First throw call stack:
(0x18324af50 0x18f7541fc 0x18324fc04 0x18324d930 0x18316d5dc 0x1001dcf14 0x1001cc430 0x1001cecd0 0x1001cf0d4 0x18fd2c014 0x18fd2bfd4 0x18fd31654 0x18fd2bfd4 0x18fd332b8 0x18fd334fc 0x18fec16bc 0x18fec154c)
libc++abi.dylib: terminating with uncaught exception of type NSException
I think it is to do with the JSON sent back from Chartboost. Is this happening for anyone else?
We just released a live fix for this. You do not have to update your SDK to get the fix, it's already there :)

Resources