I am trying to update my facebook SDK to 5.0.0 but after installing pod update, I keep getting this error in FBSDK Login Kit.
This is my pod file.
pod 'FacebookSDK', '~> 5.0.0'
pod 'FacebookSDK/LoginKit', '~> 5.0.0'
pod 'FacebookSDK/ShareKit', '~> 5.0.0'
pod 'FacebookSDK/PlacesKit', '~> 5.0.0'
pod 'FBSDKLoginKit', '~> 5.0.0'
Anyone please help me to solve this problem.
You have getting wrong way. Sometimes pod is updated but some files may not get updated. So, you need to first uninstall FBSDK pod by removing
pod 'FacebookSDK', '~> 5.0.0'
pod 'FacebookSDK/LoginKit', '~> 5.0.0'
pod 'FacebookSDK/ShareKit', '~> 5.0.0'
pod 'FacebookSDK/PlacesKit', '~> 5.0.0'
pod 'FBSDKLoginKit', '~> 5.0.0'
from pod file, and then run following command. You can also comment above pod and run command.
pod install
This will clear your old pod files.
Again, add above pods in pod file and run same command
pod install
will fix your issues.
Now I got solution. First I install FBSDK kits for version 5.0.2 like
pod 'FBSDKLoginKit', '~> 5.0.2'
pod 'FBSDKCoreKit', '~> 5.0.2'
pod 'FBSDKShareKit', '~> 5.0.2'
After you would see
Bolt.h file not found
Remove that import bolt.h
line, and replace
[FBSDKBasicUtility objectForJSONString ...]
with
[FBSDKInternalUtility objectForJSONString ...].
When you are done change some codes that they suggest to current FBSDK version acceptable codes and it solved.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.