How to swizzle []method of NSArray in iOS11?

I used to hack the method like

Method originalMethod = class_getInstanceMethod([NSArray class], @selector(objectAtIndexedSubscript:));
Method swapMethod = class_getInstanceMethod([NSArray class], @selector(objectAtIndexedSubscriptNew:));
method_exchangeImplementations(originalMethod, swapMethod);

It works fine in the iOS10 and before, but it can't work in the iOS11, is that any other way we can swizzle the [] method in iOS11?