facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 908 forks source link

FBSDKHashtag.h:24:9: Module 'FBSDKCoreKit' not found #684

Open dmitryermichev opened 4 years ago

dmitryermichev commented 4 years ago

🐛 Bug Report

Screenshot 2019-12-16 at 14 18 34

When I try to build project, I've got error

ios/Pods/Headers/Public/FBSDKShareKit/FBSDKShareKit/FBSDKHashtag.h:24:9: Module 'FBSDKCoreKit' not found

I think error appered after pods upgrading

Using FBSDKCoreKit (5.13.0)
Installing FBSDKLoginKit 5.13.0 (was 5.11.1)
Installing FBSDKShareKit 5.13.0 (was 5.11.1)

Environment

System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 37.28 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.12.0 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6 
    react-native: 0.60.5 => 0.60.5 
  npmGlobalPackages:
    react-native-cli: 2.0.1

Temporary Solution

Similar issue was in facebook-ios-sdk https://github.com/facebook/facebook-ios-sdk/issues/1102#issuecomment-551872120

Problem solved by adding to project podfile

 # Added because without modular_headers error occurred
 # https://github.com/facebook/facebook-ios-sdk/issues/1102#issuecomment-551872120
 pod 'FBSDKCoreKit', '~> 5.8', :modular_headers => true