brentvatne / react-native-login

react-native login via native facebook sdk, with a mp4 video background and a linear gradient
848 stars 103 forks source link

Having issues loading FBSDKCoreKit modules #10

Closed joshbedo closed 9 years ago

joshbedo commented 9 years ago

I seem to be having an issue compiling the project, it always errors out on the FB SDK libraries. I already installed the FB IOS SDK v4.0. I noticed within the xcode project the libraries were using the wrong path so i updated them with the path where i installed the SDK. After even doing that i'm still getting the same error so at this point i'm a little confused. I also noticed in the online version they name the directory Frameworks instead of Libraries i'm not familiar enough to know if that would be the problem. Here is what i'm seeing.

brentvatne commented 9 years ago

What do your search paths look like?

screen shot 2015-04-21 at 3 53 34 pm

Maybe I should look at packaging the SDK within this project so it's not such a difficult setup..

kmartinezmedia commented 9 years ago

I also had this problem, and was unable to solve

brentvatne commented 9 years ago

@kmartinezmedia @joshbedo - OK I will look at packaging the Facebook SDK tomorrow and ping you both when it's done :smile:

kmartinezmedia commented 9 years ago

@brentvatne awesome thanks!

kmartinezmedia commented 9 years ago

I got it to work by copying folder 'Modules' in FBSDKCoreKit.framework to the Bolts.framework. I then opened up the module.modulemap file in my text editor and replaced with this

framework module Bolts { umbrella header "Bolts.h"

export module * { export \ }

explicit module BFAppLinkResolver { header "BFAppLinkResolver.h" link "BFAppLinkResolver" export * }}

Then saved and ran. Found solution here http://stackoverflow.com/questions/29435377/facebook-ios8-sdk-build-module-error-for-fbsdkcorekit

joshbedo commented 9 years ago

@kmartinezmedia I just tried what you mentioned above and that solved the build error woo! good find :dancer:

brentvatne commented 9 years ago

Looks like you solved it so I didn't prioritize integrating the SDK directly into the project today, perhaps on the weekend!

joshbedo commented 9 years ago

Sounds good, i might try sending over a PR :D

ajrator commented 9 years ago

I can't seem to find the Modules folder... Can someone help navigate?

brentvatne commented 9 years ago

This library is deprecated now in favour of https://github.com/facebook/react-native-fbsdk :)