Install Facebook iOS SDK via CocoaPods

I am trying to update the Facebook-iOS-SDK module to the latest version 3.18.0, but after running the command

pod update

I get a lot of error messages:

Installing Facebook-iOS-SDK (3.18.0) [!] / Usr / bin / git updating the submodule --init --depth 1

The Bolts-IOS submodule (git: //github.com/BoltsFramework/Bolts-iOS.git) registered for the Bolts-IOS path

Submodule 'vendor / OCHamcrest' (git: //github.com/hamcrest/OCHamcrest) registered for the path 'vendor / OCHamcrest'

Submodule 'vendor / OCMock' (git: //github.com/erikdoe/ocmock) registered for the path 'vendor / OCMock'

Submodule 'vendor / OHHTTPStubs' (git: //github.com/AliSoftware/OHHTTPSPSs.git) registered for the path 'vendor / OHHTTPStubs'

Submodule 'vendor / appledoc' (git: //github.com/tomaz/appledoc.git) registered for the path 'vendor / appledoc'

Submodule 'vendor / ios-snapshot-test-case' (git: //github.com/facebook/ios-snapshot-test-case.git) registered for the path 'vendor / ios-snapshot-test- case'

Submodule 'vendor / xctool' (git: //github.com/facebook/xctool.git) registered for the path 'vendor / xctool' Cloning to IOS Bolts ...

fatal: the link is not a tree: d679df70933da29463e44e15f4ce4f740d7b5dfd

Cloning in 'vendor / OCHamcrest' ...

fatal: the link is not a tree: da09243ef136883fa8cea7ea2d42f48a9256fbdf

Cloning in 'vendor / OCMock' ...

fatal: link not tree: 2191c124a93f535056e5cae05d55545a415fcde1

Cloning in 'vendor / OHHTTPStubs' ...

fatal: link not tree: c87ded1ac299bc659a7e36bac43cac094bf7adb9

Cloning in 'vendor / appledoc' ...

fatal: the link is not a tree: d2e65f8c2faa066acfea2dbb51a5ec2d5364c7ec

Cloning to "provider file / ios-snapshot-test-case" ...

fatal: link is not a tree: a04ea585a5efb6cce6e5cd17f568eb1e6c472b2c

Cloning in 'vendor / xctool' ...

fatal: link is not a tree: f8720fe7e6af818054328c0325c7e9ce195f7c7c

Unable to check "d679df70933da29463e44e15f4ce4f740d7b5dfd" in the path of the "Bolts-IOS" submodule

Unable to check 'da09243ef136883fa8cea7ea2d42f48a9256fbdf' in the path of the 'vendor / OCHamcrest' submodule

Unable to check '2191c124a93f535056e5cae05d55545a415fcde1' in the path of the 'vendor / OCMock' submodule

Unable to check 'c87ded1ac299bc659a7e36bac43cac094bf7adb9' in the path of the 'vendor / OHHTTPStubs' submodule

Unable to check 'd2e65f8c2faa066acfea2dbb51a5ec2d5364c7ec' in the path of the 'vendor / appledoc' submodule

Failed to check 'a04ea585a5efb6cce6e5cd17f568eb1e6c472b2c' in the path of the 'vendor / ios-snapshot-test-case' submodule

Unable to check 'f8720fe7e6af818054328c0325c7e9ce195f7c7c' in the path of the 'vendor / xctool' submodule

Any ideas how to solve this?

+5
source share
2 answers

I got the same error with facebook sdk 3.18.2, but when I updated the pod to 0.34.1, it solved.

+3
source

As mentioned in this post , the Facebook-iOS-SDK deprecated (see the post cocoapods gives you when you use pod install ). You should use:

 pod "FBSDKCoreKit"; pod "FBSDKLoginKit"; pod "FBSDKShareKit"; pod "FBSDKMessengerShareKit"; 
+3
source

Source: https://habr.com/ru/post/1203052/


All Articles