CYAD
CYAD

Reputation: 1277

FBSDKCoreKit.modulemap not found in XCode with Cocoapods

I'm using Cocoapods to add FaceBook and Google platforms to my iOS app in XCode 12. Trying to build, I get the error below.

iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.modulemap not found

I've run all the steps to import the pods and they seem to all be in place. In fact, the missing modulemap is here:

..ProjectName/Pods/Target Support Files/FBSDKCoreKit

So it appears XCode simply can't locate the file during the build process. I'm definitely opening the workspace created by the Pod install and not the standalone project. Any thoughts on how to make this connection?

Upvotes: 1

Views: 2097

Answers (1)

nahoang
nahoang

Reputation: 2478

On Xcode 12 you got the error: FBSDKCoreKit.modulemap not found because you are opening file with extension .xcproject which will causing no dependencies to your projects.

So quit Xcode and open project again by opening file with extension .xcworkspace (beer in mind you should do this while working with React Native)

Then Product > Clean and Product > Build

Cheer!

Upvotes: 0

Related Questions