iosxcodecocoapodsunrecognized-selector

Error: Unrecognised selector, Warning: Class implemented in both


I'm running into a unrecognised selector error as my App is resolving the wrong library when calling a method in runtime.


What:


Podfile


Attempts:


Does anyone have an idea whats going on? Any insight would be much appreciated.


Solution

  • Ok, this is just a guess, I'll remove the answer if it turns out to be complete bullshit...

    Apple deprecated - and maybe just have removed - the method reachabilityForLocalWiFi. So it could be that your pods just import old header files, which satisfy the compiler, but at runtime, the function does not exist anymore, hence the unrecognized selector exception.

    You could just try the suggestions from the linked Apple Readme.md

    Nevertheless, it would be interesting to find out if this really is the reason, and why the podfiles "misbehave" in that way.