Search code examples
iosobjective-cxcodefacebookcocoapods

FBSDKLoginManager via Cocapods "No visible @interface..."


There are many questions surrounding the following exception:

no visible @interface for 'FBSDKLoginManager' declares the selector 'logInWithReadPermissions:fromViewController:handler:

Which leads me to think it is less related to FB's SDK but is actually some stupid Xcode technical issue. I'm not missing anything implementation-wise, so what could this pertain to? I've cleared my Pod cache and reinstalled the respective Pods which didn't affect anything.

Xcode exception

Any direction would be much appreciated.


Solution

  • TL;DR: Removing references and deleting files are two different things...

    Similar issue: https://stackoverflow.com/a/10744258/648865

    There's a duplicate file somewhere in the project! Go hunt it down and destroy it mercilessly!