Encapsulate this code between `if ([NSURLSessionConfiguration class]) { … }` or better, between `if ([sessionConfig respondsToSelector:@selector(protocolClasses)]) { … }`