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

buildSettings.LIBRARY_SEARCH_PATHS.push is not a function #17864

Closed
jomnius opened this issue Feb 6, 2018 · 3 comments
Closed

buildSettings.LIBRARY_SEARCH_PATHS.push is not a function #17864

jomnius opened this issue Feb 6, 2018 · 3 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@jomnius
Copy link

jomnius commented Feb 6, 2018

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 9.4.0
Yarn: 1.3.2
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.52.2 => 0.52.2

Steps to Reproduce

  1. Type "react-native link" on command line
  2. Error report requesting to create issue for you

Expected Behavior

No error

Actual Behavior

jmiettunen $ react-native link
Scanning folders for symlinks in /Users/jmiettunen/git/project/ern-miniapp/node_modules (11ms)
rnpm-install info Linking react-native-electrode-bridge android dependency
rnpm-install info Android module react-native-electrode-bridge has been successfully linked
rnpm-install info Linking react-native-electrode-bridge ios dependency
rnpm-install WARN ERRGROUP Group 'Libraries' does not exist in your Xcode project. We have created it automatically for you.
rnpm-install ERR! 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

Reproducible Demo

Is there some more (debug) info you would like to have? Sorry, cannot send app source code.

@jomnius
Copy link
Author

jomnius commented Feb 9, 2018

UPDATE: I fixed this problem by removing already existing single value from LIBRARY_SEARCH_PATHS in Xcode project settings. After that the "push" command succeeded and turned LIBRARY_SEARCH_PATHS into an array.

So the problem was that I had added a single non-array value into LIBRARY_SEARCH_PATHS by myself, while trying to force Xcode library search paths correct. The fix was to remove that value. Also embedding the single value inside an array would have been ok.

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. labels Feb 24, 2018
@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 24, 2018
@hasnabbas
Copy link

@jomnius can you tell the format/structure of the newly created array?

@facebook facebook locked as resolved and limited conversation to collaborators Feb 24, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants