Remove check that's too agressive
@@ -155,14 +155,6 @@ void TSKLog(NSString *format, ...)
[NSException raise:@"TrustKit configuration invalid"
format:@"Cannot use TSKSwizzleNetworkDelegates outside the TrustKit sharedInstance"];
}
-
- if ((sharedTrustKit) && ([[sharedTrustKit configuration][kTSKSwizzleNetworkDelegates] boolValue] == YES))
- {
- // Local instances cannot be used if a shared instance with swizzling enabled is used, to avoid double pinning validation
- // There is a race condition here on whether the shared VS local instance get instantiated first, but better than nothing
- [NSException raise:@"TrustKit configuration invalid"
- format:@"Cannot use local TrustKit instances when the TrustKit sharedInstance has been initialized with kTSKSwizzleNetworkDelegates enabled"];
- }
}
// Configure the pinning validator and register for pinning callbacks in order to
