Dispatch_once error when starting FacebookSDK

I don’t know what happened, I installed FacebookSDK using Cocoapods (as always), and I get an error in this method:

    _dispatch_once(dispatch_once_t *predicate, dispatch_block_t block)
{
  if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) {
    dispatch_once(predicate, block);
  }
}

The red error line is on the line dispatch_once (predicate, block);. I do nothing else than others using the FacebookSDK.

Can anyone help?

+4
source share
2 answers

Customize your info.plist

Locate the .plist file in the Supported Files folder in your Xcode project. 1. Right-click your .plist file and select "Open as Source." 2. Copy and paste the XML fragment into the body of your file (...).

   <key>CFBundleURLTypes</key>
   <array>
     <dict>
     <key>CFBundleURLSchemes</key>
     <array>
       <string>FB + AP-ID</string>
     </array>
     </dict>
   </array>
   <key>FacebookAppID</key>
   <string> AP-ID </string>
   <key>FacebookDisplayName</key>
   <string>App-Name</string>
  1. - Facebook (, Login, Share, App Invites ..), Facebook, .plist .

    <key>LSApplicationQueriesSchemes</key>
    <array>
      <string>fbapi</string>
      <string>fb-messenger-api</string>
      <string>fbauth2</string>
      <string>fbshareextension</string>
    </array>
    

: SDK Facebook

+2

:

'The service configuration is `nil`

:

dispatch_once(predicate, block);

AWS Auth iOS.

info.plist, awsconfiguration.json , , " " Xcode . , AWS Auth.

, -.

0

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


All Articles