iOS:AFNetworking 2.0的可调试调试错误

时间:2014-05-05 08:49:19

标签: ios afnetworking-2 apportable

我正在使用appportable运行应用程序,并且在构建我的应用程序后出现这些错误:

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

我在AFNetworkActivityLogger中看到我应该设置s.ios.deployment_target ='6.0'但是没关系,我不明白这个问题

1 个答案:

答案 0 :(得分:2)

我认为completionQueue和completionGroup不是对象。所以从他们两个中删除“强”。例如:

@property (nonatomic) dispatch_queue_t completionQueue;

@property (nonatomic) dispatch_group_t completionGroup;

至于第三个错误,我认为您需要将类型为 NSProgress * 的对象传递给该函数。你必须传递错误的对象。

你能展示一些代码吗?没有代码,我无法确定。