I get the following error when testing on iOS4:
dyld: Symbol not found: _OBJC_CLASS_$_NSJSONSerialization
While on iOS5 it's working fine.
Any help will be appreciated.
From the AFNetworking README :
"AFNetworking uses NSJSONSerialization if it is available. If your app targets a platform where this class is not available you can include one of the following JSON libraries to your project for AFNetworking to automatically detect and use."
With that being said, to prevent the following error make sure of two things
AFNetworking
would realize it can't use NSJSONSerialization
and will fall back to one of the included JSON parsing classes.Shai.
@hoshi is right. You can't use NSJSONSerialization on devices running older than iOS 5.0.
Here's the documentation from Apple's site. For my own code I also use the SBJson library.
Seems to be that the AFNetworking
class is the one that use NSJSONSerialization
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With