AFNetworking compilation error: Property with 'retain (or strong) 'attribute must be of object type, afnetworkingretain
AFNetworking 2.0 when Deployment Target is lower than 6.0, AFURLConnectionOperation. h, AFURLSessionManager. h
@property (nonatomic, strong) dispatch_queue_t completionQueue;
The error message is displayed because dispatch_queue_t ARC is not hosted when the sdk is lower than 6.0.
Property with 'retain (or strong)' attribute must be of object type
Change
# If OS _OBJECT_USE_OBJC
@ Property (nonatomic, strong) dispatch_queue_t completionQueue;
# Else
@ Property (nonatomic, assign) dispatch_queue_t completionQueue;
# Endif
/**
The dispatch group for 'completionblock'. If 'null' (default), a private dispatch group is used.
*/
# If OS _OBJECT_USE_OBJC
@ Property (nonatomic, strong) dispatch_group_t completionGroup;
# Else
@ Property (nonatomic, assign) dispatch_group_t completionGroup;
# Endif