iOS:可移植的调试错误与AFNetworking 2.0



我正在运行一个应用程序与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.o os.deployment_target = '6.0',但没关系,我不明白这个问题

我相信completionQueue和completionGroup不是对象。所以把"strong"从这两个词中去掉。如:

@property (nonatomic) dispatch_queue_t completionQueue;
@property (nonatomic) dispatch_group_t completionGroup;
对于第三个错误,我认为你需要传递一个类型为NSProgress *的对象给该函数。你一定传递错对象了。

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

相关内容

  • 没有找到相关文章

最新更新