I am using the imp_implementationForwardingToSelector lib for IMP forwarding to a different selector. It works fine on real devices but giving error when I am trying to build for simulators
Error: Undefined symbols for architecture x86_64
SEL forwardingSelector = NSSelectorFromString([NSString stringWithFormat:@"__supert__forwarding__%@__%@", className, methodName]);
SEL originalSelector = NSSelectorFromString(originalSelectorString);
IMP forwardingImplementation = imp_implementationForwardingToSelector(forwardingSelector, methodReturnsStructValue);
class_replaceMethod(class, originalSelector, method_getImplementation(method), typeEncoding);
method_setImplementation(method, forwardingImplementation);
Is there any setting that I am missing or any other lib suggestion which will help me do the same thing.