title: How to check for mutually exclusive method presence in SDK in Swift?
body: <p>My problem is the following. I have a library that is depending on the SDK. I need to library to work with multiple versions of SDK. So in dependency SDK there is method A(withSuccess:EmptyBlock failure:errorBlock) in older version and method A(withSuccess:SomeObjectBlock failure:errorBlock) in newer version. This clearly means that there cannot be a if respondsToSelector call as the methods are mutually exclusive my library will always fail to compile, since one of the methods are not there. My question is can I somehow achieve that using some reflection via strings or something similar. The solution should preferably be in Swift.</p>