Facebook SDK: Module Not Found

Hi there,

  • I am using the Facebook SDK (7.18.0), imported into Unity (2019.2.12f1). I built to iOS.
  • I installed the FBSDKCoreKit via Terminal, so it exists in the Pods folder in Xcode.

However when I build to device, I get an error, claiming that the Module FBDSKCoreKit, cannot be found.

I am at a bit of a loss.
Any ideas?

I’m also facing this issue at the moment.

I have already tried messing with the podfile versions (tried 5.2, 5.5, 5.8 and 5.14), but that didn’t help. I also tried adding modular_headers=“true” to the Dependencies.xml in Facebook SDK, which seemed to fix compilation on my MacBook, but not on our build machine. Both machines had the same Xcode and podfiles, so not sure why it compiled only on one machine.

EDIT: To clarify, in the Dependencies.xml there is a list of iosPod elements, and I added the modular_headers attribute to each of them.

1 Like

Hi there,
I am getting some good help via this thread, I hope you can access it. We have not yet solved it, but there is a very good man on the case.
https://www.facebook.com/groups/IndieGameDevs/10156548952636573/?comment_id=10156550526956573&reply_comment_id=10156553533361573&notif_id=1579187513133062&notif_t=group_comment_mention

Thanks for the link!

Due to being in a hurry (supposed to release next week), I reverted back to older Facebook SDK (7.17.2), but still had the same issue. I then deleted all cocoapod caches, changed the SDK to depend on specific versions instead of using the “optimistic version” (the ~> syntax)

OLD: <iosPod name="FBSDKCoreKit" version="~> 5.5" />
NEW: <iosPod name="FBSDKCoreKit" version="5.6" />
(5.6 instead of 5.5 because of another plugin's dependencies)

It now compiles and seems to be working. Unfortunately I couldn’t get it working with the newer versions.

In case you are able to get the new SDK working for you, it would be great if you could share your findings, since we’re surely going to update the SDK at some point.

1 Like

Hi there,
Well my solution was that, I had an older project that had a working SDK. My only thinking is that, in my case was this… I switched publishers and they wanted a different SDK set up, but using the same SDK’s so I deleted the old ones, and replaced them with the new ones.

My guess is somewhere, somehow, some files got lost, misplaced… Totally unsure. Anyhow, I just reverted back to an old project.

Sorry, I am not much help here.

1 Like

Same issue here, very frustrating.
Any updates?

Not particularly.

I was lucky tho, in that I had an earlier version I had published to test the market (in hyper casual) under publisher X, they use a custom Unity Package, that carries all the SDKs. This version worked fine. The issue came when I switched publishers and installed the raw SDKs from Facebook etc.

So, I just went back to an earlier project, made the updates I needed, and ditched the the project using the raw SDKs.