Search code examples
iosswiftcocoapodspodfile

No such module 'FBSDKLoginKit'


I just copied my project from my back up folder to another folder in desktop and its giving me this error. I have updated my pod again after removing FBSDKLoginKit still it's not working. If I remove this module and then build also some other pod will give the same error.

please don't mark it as duplicate as I need the root cause for this issue rather than the temporary solutions provided in different other threads like this one No Such Module 'FBSDKLoginKit' Xcode 9


Solution

  • Finally got a fix for this . I used command + B to build my project, the errors related to SVProgressHUD,FBSDKLoginKit and FBSDKShareKit went away.

    Edit : The actual issue is there is a bug with Xcode wherein its not recognizing the pods already installed and added to the project.Thats why the module not found error during compile time. I am getting the same build error with many other pods afterwards also.Its happening only at times that too unexpectedly .The only way is to build the project multiple times until it recognizes the module and the error is gone .This sounds crazy but no other way so far.please update here if someone finds a permanent fix for this . Thanks