facebook-sdk-for-unity icon indicating copy to clipboard operation
facebook-sdk-for-unity copied to clipboard

FBSDKCoreKit-Swift.h?

Open 3goandrearossini opened this issue 3 years ago • 2 comments

Checklist

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?

Screenshot 2021-07-19 at 16 28 12

3goandrearossini avatar Jul 19 '21 14:07 3goandrearossini

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'

ilyaskos3 avatar Aug 06 '21 14:08 ilyaskos3

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.

AndrzejLorek avatar Aug 24 '21 18:08 AndrzejLorek