stupid but it works
// GlobalImport.pch
#ifndef GlobalImport_pch
#define GlobalImport_pch
#import "FBLPromise+Extension.h"
#endif
// FBLPromise+Extension.h
#if __has_include(<FBLPromises/FBLPromises.h>)
#import <FBLPromises/FBLPromises.h>
#else
#import "FBLPromises.h"
#endif
@interface FBLPromise (Extension)
@property(nonatomic, readonly) NSHTTPURLResponse *HTTPResponse;
@property(nonatomic, readonly) NSData *HTTPBody;
- (instancetype)initWithResponse:(NSHTTPURLResponse *)response HTTPBody:(NSData *)body;
@end
// FBLPromise+Extension.m
#import "FBLPromise+Extension.h"
@implementation FBLPromise (Extension)
+ (NSData *)HTTPBody {
return nil;
}
- (NSData *)HTTPBody {
return nil;
}
+ (void)setHTTPBody:(NSData *)data {
}
- (void)setHTTPBody:(NSData *)data {
}
+ (NSHTTPURLResponse *)HTTPResponse {
return nil;
}
- (NSHTTPURLResponse *)HTTPResponse {
return nil;
}
+ (void)setHTTPResponse:(NSHTTPURLResponse *)data {
}
- (void)setHTTPResponse:(NSHTTPURLResponse *)data {
}
+ (instancetype)initWithResponse:(NSHTTPURLResponse *)response HTTPBody:(nullable NSData *)body {
return nil;
}
- (instancetype)initWithResponse:(NSHTTPURLResponse *)response HTTPBody:(nullable NSData *)body {
return nil;
}
@end