'AFNetworking 4.0 upgrade error/ Migration

No visible @interface for 'AFHTTPSessionManager' declares the selector 'POST:parameters:progress:success:failure:'

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
manager.operationQueue.maxConcurrentOperationCount = 10;
[manager POST:[url absoluteString] parameters:params progress:nil success:^(NSURLSessionTask *task, id responseObject) {
    NSDictionary *response = (NSDictionary *)responseObject;
    NSNumber* remoteAppVersion = [response objectForKey:@"ApplicationVersion"];
    [self setLocalAppVersion:remoteAppVersion];
    [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
} failure:^(NSURLSessionTask *operation, NSError *error) {
    NSLog(@"Error occured while getAppVersion. Error : %@",error);
    [self updateAppCompleted];
}];

}

I upgraded afnetworking 4.0 and got this error in my get and post operations. Can you help me how can i fix this problem



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source