我想在Swift应用程序中使用AFNetworking。我将它添加到桥接头文件中的Podfile和importet。它的工作原理但问题是当我尝试调试并使用LLDB例如po来查看我的变量时我得到了这个错误:
error: Error in auto-import: failed to get module 'test2' from AST context: /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9:9: note: in file included from /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9: #import ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:34:13: note: in file included from /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:34: #import "AFURLConnectionOperation.h" ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h:192:1: error: property with 'retain (or strong)' attribute must be of object type @property (nonatomic, strong) dispatch_queue_t completionQueue; ^ /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9:9: note: in file included from /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9: #import ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:34:13: note: in file included from /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:34: #import "AFURLConnectionOperation.h" ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFURLConnectionOperation.h:197:1: error: property with 'retain (or strong)' attribute must be of object type @property (nonatomic, strong) dispatch_group_t completionGroup; ^ /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9:9: note: in file included from /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9: #import ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:36:13: note: in file included from /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:36: #import "AFHTTPRequestOperationManager.h" ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h:154:1: error: property with 'retain (or strong)' attribute must be of object type @property (nonatomic, strong) dispatch_queue_t completionQueue; ^ /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9:9: note: in file included from /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9: #import ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:36:13: note: in file included from /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:36: #import "AFHTTPRequestOperationManager.h" ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFHTTPRequestOperationManager.h:159:1: error: property with 'retain (or strong)' attribute must be of object type @property (nonatomic, strong) dispatch_group_t completionGroup; ^ /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9:9: note: in file included from /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9: #import ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:40:13: note: in file included from /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:40: #import "AFURLSessionManager.h" ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFURLSessionManager.h:155:1: error: property with 'retain (or strong)' attribute must be of object type @property (nonatomic, strong) dispatch_queue_t completionQueue; ^ /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9:9: note: in file included from /Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h:9: #import ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:40:13: note: in file included from /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFNetworking.h:40: #import "AFURLSessionManager.h" ^ /Users/bialek/Desktop/test2/Pods/Headers/Public/AFNetworking/AFURLSessionManager.h:160:1: error: property with 'retain (or strong)' attribute must be of object type @property (nonatomic, strong) dispatch_group_t completionGroup; ^ failed to import bridging header '/Users/bialek/Desktop/test2/test2/test2-Bridging-Header.h'A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible.
有人知道出了什么问题吗?