Iam about to update our post project in Objective C to meet the new Apple requirement for support Ipv6 only. My AFNetworking
libray is now 1.2.1. I doubt it is the problem. I want to update to latest version support IPv6 but when running pod install I get this error
[!] Unable to satisfy the following requirements:
AFNetworking (~> 3.1.0)
required byPodfile
AFNetworking (= 3.1.0)
required byPodfile.lock
AFNetworking (~> 1.2.1)
required byAFRaptureXMLRequestOperation (1.0.2)
Here is my complete pod file
platform :ios, '7.0'
def shared_pods
pod 'RaptureXML'
pod 'Realm'
end
def ios_pods
pod 'AFRaptureXMLRequestOperation'
pod 'GoogleAnalytics-iOS-SDK', '~> 3.0.9'
pod 'KGModal', '~> 0.0.1'
pod 'MagicalRecord'
pod 'MHNatGeoViewControllerTransition', '~> 1.0'
pod 'SVProgressHUD', '~> 1.0'
pod 'UALogger', '~> 0.2.3'
pod 'Reachability', '~> 3.1.1'
pod 'RegexKitLite', '~> 4.0'
pod 'SSKeychain', '~> 1.2.1'
pod 'TTTAttributedLabel'
pod 'TPKeyboardAvoiding', '~> 1.1'
pod 'UIAlertView+Blocks', '~> 0.7'
pod 'UIActivityIndicator-for-SDWebImage', '~> 1.0.3'
pod 'SevenSwitch', '~> 1.3.0'
pod 'ZXingObjC', '~> 3.0'
pod 'DeviceUtil', '~> 1.2'
end
Is there any way to use AFRaptureXMLRequestOperation
with AFNetworking 3.0? or any other solution? Any help is much appreciate. Thanks
AFRaptureXMLRequestOperation
subclassesAFHTTPRequestOperation
, but this class no longer exists in AFNetworking 3.x. You will not be able to useAFRaptureXMLRequestOperation
with AFNetworking 3.x.If you're just parsing
XML
response with AFNetworking 3.x, you can useAFXMLParserResponseSerializer
. It returns aNSXMLParser
.So, set the
delegate
for thatresponseObject
, and then callparse
on it:You'll have to write your own
NSXMLParserDelegate
code, though. So, to parse the titles out of the XML of Apple's RSS feed, I added two properties:And then implemented the following
NSXMLParserDelegate
methods: