3

I'm running an app with appportable and I have these errors after build my app:

In file included from /Users/.../Desktop/.../.../..././AFNetworking.h:40:
/Users/.../Desktop/.../.../.../AFURLSessionManager.h:153:1: error: property with 'retain (or strong)' attribute must be of object type
@property (nonatomic, strong) dispatch_queue_t completionQueue;
^
/Users/.../Desktop/.../.../.../AFURLSessionManager.h:158:1: error: property with 'retain (or strong)' attribute must be of object type
@property (nonatomic, strong) dispatch_group_t completionGroup;
^
/Users/.../Desktop/.../.../.../AFURLSessionManager.h:207:52: error: expected a type
                                         progress:(NSProgress * __autoreleasing *)progress

I read that in AFNetworkActivityLogger I should set s.ios.deployment_target = '6.0' but it's ok, I don't understand the problem

laalto
  • 150,114
  • 66
  • 286
  • 303
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241

1 Answers1

2

I believe completionQueue and completionGroup are not objects. So remove "strong" from both of them. eg:

@property (nonatomic) dispatch_queue_t completionQueue;

@property (nonatomic) dispatch_group_t completionGroup;

As for the Third error, I think you will need to pass an object with type NSProgress * to that function. You must have pass the wrong object.

Can you show some code? I can not know for a certain without the code.

Ricky
  • 10,485
  • 6
  • 36
  • 49