Closed richardtop closed 4 years ago
I'm using TrustKit with CocoaAsyncSocket when trying to connect both in this method:
- (void)socket:(INGCDAsyncSocket *)sock didReceiveTrust:(SecTrustRef)trust completionHandler:(void (^)(BOOL))completionHandler { [TSKPinningValidator evaluateTrust: trust forHostName: @""]; }
I'm getting the following error:
No known class method for selector 'evaluateTrust:forHostName:'
My import statements look as follows:
#import <TrustKit/TrustKit.h> #import <TrustKit/TSKPinningValidator.h>
What could be causing the issue and how can I resolve it?
I'm using TrustKit with CocoaAsyncSocket when trying to connect both in this method:
I'm getting the following error:
My import statements look as follows:
What could be causing the issue and how can I resolve it?