Home > Enterprise >  FBSDKShareKit.h' file not found xcode unity
FBSDKShareKit.h' file not found xcode unity

Time:09-21

im trying to build unity project to ios device

everything was working good before i installed FaceBookSDK

now i always get this error:

error

i was trying some solutions over the internet including this none of them helped me

unity 2020.3.18f1 FacebookSDK 11.0.0

any help?

CodePudding user response:

this is an issue occurs when using Facebook SDK above 11.1.0, all you have to do is downgrade the SDK to 11.1.0, Open the pod file as notepad or on Xcode and change the pod Script for Facebook SDK

replace this

  pod 'FBSDKCoreKit', '~> 11.0'
  pod 'FBSDKCoreKit_Basics', '~> 11.0'
  pod 'FBSDKGamingServicesKit', '~> 11.0'
  pod 'FBSDKLoginKit', '~> 11.0'
  pod 'FBSDKShareKit', '~> 11.0'

to this

  pod 'FBSDKCoreKit', '~> 11.1.0'
  pod 'FBSDKCoreKit_Basics', '~> 11.1.0'
  pod 'FBSDKGamingServicesKit', '~> 11.1.0'
  pod 'FBSDKLoginKit', '~> 11.1.0'
  pod 'FBSDKShareKit', '~> 11.1.0'

CodePudding user response:

finally i fixed it using this

the solution:

1- Open terminal and open project output folder (cd [folder path])

2- I run the code "pod install", it created the xcworkscape file.

3- I open the xcworkspace file in xcode and it works without error on device

  • Related