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 907 forks source link

fatal error: 'FBSDKCoreKit/FBSDKAppEvents.h' file not found #636

Open bytesbay opened 5 years ago

bytesbay commented 5 years ago

🐛 Bug Report

fatal error: 'FBSDKCoreKit/FBSDKAppEvents.h' file not found When trying react-native run-ios

Spent already 3 days, please , help :(

Installed with very different ways, from manual, non manual, pods, etc... just all ways

Environment

package.json

"react": "16.8.3",
"react-native": "0.59.8",
"react-native-fbsdk": "^0.10.1",

Podfile

target 'App' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for App
  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'

  target 'AppTests' do
    inherit! :search_paths
    # Pods for testing
  end

end
gabrielbabierra commented 5 years ago

I have the same error. Any ways to resolve this issue?

Screenshot 2019-09-09 at 4 18 05 PM

Package JSON: "react": "16.6.3", "react-native": "0.58.6", "react-native-fbsdk": "^0.8.0", "react-native-firebase": "^5.5.6", "react-navigation": "^3.9.2",

tobiastornros commented 5 years ago

You need to upgrade react-native to 0.60+.

corelmax commented 5 years ago

You need to upgrade react-native to 0.60+.

I'm facing the same problem right now. And i just wondered if these library are native library served by CocoaPod, why we need to upgrade react-native?

tobiastornros commented 5 years ago

@corelmax https://github.com/facebook/react-native-fbsdk/releases?after=v1.0.0-rc.2

Since react-native-fbsdk v1.0.0 require RN 0.60+

chengsam commented 5 years ago

@tobiastornros I'm using react-native-fbsdk v0.10.1 but facing the same error.

ltanhswd commented 5 years ago

same issue, anyone can fix it?

chengsam commented 5 years ago

same issue, anyone can fix it?

Try downloading the SDK instead of using cocoapods

ltanhswd commented 5 years ago

@chengsam Do you have any documentations for that? Also, that issue is fixed?

chengsam commented 5 years ago

@chengsam Do you have any documentations for that? Also, that issue is fixed?

Or if possible you can upgrade RN to > 0.60, it should solve all the linking problem

namdeveloper commented 4 years ago

In my case, I use

"react-native": "0.59.9", "react-native-fbsdk": "^0.10.1",

I solve problem (FBSDKAppEvents.h file not found) with vesion (5.6.0)

pod 'FacebookSDK' pod 'FBSDKCoreKit', ' 5.6.0' pod 'FBSDKShareKit', ' 5.6.0' pod 'FBSDKLoginKit', ' 5.6.0'

dmitryermichev commented 4 years ago

I think this issue related with https://github.com/facebook/react-native-fbsdk/issues/684#issue-538351275 May be solution will help too.