Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when react-native link installing fbsdk #11375

Closed
DeDuckProject opened this issue Dec 8, 2016 · 5 comments
Closed

Error when react-native link installing fbsdk #11375

DeDuckProject opened this issue Dec 8, 2016 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@DeDuckProject
Copy link

Description

I tried install FBSDK using react-native link like here, and got this:
(Android was ok, ios not)...


rnpm-install info Android module react-native-fbsdk is already linked 
rnpm-install info Linking react-native-fbsdk ios dependency 
rnpm-install ERR! It seems something went wrong while linking. Error: buildSettings.LIBRARY_SEARCH_PATHS.push is not a function 
Please file an issue here: https://github.com/facebook/react-native/issues 

buildSettings.LIBRARY_SEARCH_PATHS.push is not a function

Reproduction

above

Solution

Don't know. its good if there will be a manual installation guide for FBSDK-ios, the manual ios trouble-shooting here https://github.com/facebook/react-native-fbsdk doesn't suffice...

Additional Information

  • React Native version: 0.38 / 0.34 (happened on both
  • Platform: ios
  • Operating System: macOS
@estemilia
Copy link

estemilia commented Dec 20, 2016

I found solution. I hope it works to you.

  1. cd yourproject.xcodeproj
  2. backup your project.pbxroj ***<-important!
    (because i don't know my solution is good or bad.. but my project build well.)
  3. open project.pbxroj and find LIBRARY_SEARCH_PATH=""
  4. remove all

and try react-native link react-native-fbsdk :)

@redpandatronicsuk
Copy link

Thanks @estemilia ! I think the problem is that the RN linking tool expects LIBRARY_SEARCH_PATH to be of type array, not string. So rather that removing all LIBRARY_SEARCH_PATH="...", you can also change it to: LIBRARY_SEARCH_PATH=("..."), i.e. add () around the ".."

@ifalldev
Copy link

I tried both solutions, but transforming LIBRARY_SEARCH_PATH in a array did not fix.

Instead I removed them all. Then when I ran react-native link it created a fresh new LIBRARY_SEARCH_PATH parameters.

In my case LIBRARY_SEARCH_PATH was empty so I could do that.

@matiasfha
Copy link

matiasfha commented Jul 23, 2017

Looks like the issue is that this file node_modules/react-native-fbsdk/ios/ios.xcodeproj have an new version structure (XML) (react-native-fbsdk 0.6.1) and react-native link command is expecting the old format.

There is a PR here facebookarchive/react-native-fbsdk#349

@pull-bot
Copy link

pull-bot commented Oct 9, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

@hramos hramos added the Icebox label Oct 9, 2017
@hramos hramos closed this as completed Oct 9, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 9, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants