AFNetworking with Swift gives errors in LLDB
I want to use AFNetworking in Swift app. I added it to Podfile and importet to bridge header file. This works, but the problem is I am trying to debug and use LLDB like po to look at my variable. I am getting the following errors:
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.
Does anyone know what is wrong?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: