facebook-sdk-for-unity
facebook-sdk-for-unity copied to clipboard
FBSDKCoreKit-Swift.h?
Checklist
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing GitHub issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
- Unity Editor Version:
2019.4.28f1
- Unity SDK Version:
11.0.0
- Installation Platform & Verison:
[iOS]
Goals
Building Unity Project into XCode.
Expected Results
Build success.
Actual Results
See the attached image for the error. That is:
"Swift Compiler Error" "Header 'FBSDKCoreKit-Swift.h' not found"
Code Samples & Details
In PodFile I have all FBSDKCoreKit, FBSDKCoreKit_Basic, FBSDKGamingServicesKit, FBSDKLoginKit, FBSDKShareKit.
Have you ever had this problem before?

I was getting exact same error this pod depencies worked for me, forcing to 11.0.0
pod 'FBSDKCoreKit', '11.0.0'
pod 'FBSDKCoreKit_Basics', '11.0.0'
pod 'FBSDKGamingServicesKit', '11.0.0'
pod 'FBSDKLoginKit', '11.0.0'
pod 'FBSDKShareKit', '11.0.0'
You should run pod update in build directory before opening the xcode workspace for the first time after updating. Because cocoapods needs to get these dependencies before you want to use them.