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

spec.prepare_command error in third-party-podspecs for GLog and DoubleConversion #16460

Closed
Arvin-J opened this issue Oct 19, 2017 · 9 comments
Closed
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Arvin-J
Copy link

Arvin-J commented Oct 19, 2017

Is this a bug report?

Yes

when i Adding React Native to an Existing Application According to the document execution "pod install ".
I get the error :

[!] /bin/bash -c
set -e
mv src double-conversion

mv: rename src to double-conversion: No such file or directory  

At last I found the pod specs of GLog and DoubleConversion have a prepare_command lead to the error.

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS High Sierra 10.13
Node: 8.7.0
Yarn: 0.27.5
npm: 5.4.2
Xcode: 9.0 (9A235)

Packages: (wanted => installed)
react-native: 0.49.0
react: 16.0.0

Target Platform: iOS (10.3)

Steps to Reproduce

(Write your steps here:)

  1. In accordance with the Adding React Native to an Existing Application Document for iOS Swift
  2. add the pod file
  3. pod install

poffile

#   Reactive Native
    pod 'React', :path => './ReactComponent/node_modules/react-native', :subspecs => [
        'Core',
        'CxxBridge', # Include this for RN >= 0.47
        'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
        'RCTText',
        'RCTNetwork',
        'RCTWebSocket', # needed for debugging
# Add any other subspecs you want to use in your project
	]
# Explicitly include Yoga if you are using RN >= 0.42.0
    pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
    pod 'Folly', :path => '../node_modules/react-native/third-party-podspecs'
    pod 'DoubleConversion', :path => '../node_modules/react-native/third-party-podspecs'
    pod 'GLog', :path => '../node_modules/react-native/third-party-podspecs'
@JianYeee
Copy link

So am I,and there are solutions?

@Arvin-J
Copy link
Author

Arvin-J commented Oct 30, 2017

@xiaozi4624 Yes , I found the podspecs path is wrong. We should use the absolute path. For example '../node_modules/react-native/third-party-podspecs/GLog.podspecs'. Not like the document for 'yoga'.

@Arvin-J Arvin-J closed this as completed Oct 30, 2017
@JianYeee
Copy link

@flyingnoob Did you means change pod 'DoubleConversion', :path => './React/node_modules/react-native/third-party-podspecs' to pod 'DoubleConversion', :path => './React/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' . But it don't work for me

@skhan02
Copy link

skhan02 commented Oct 31, 2017

@xiaozi4624 Check out: https://github.com/mhorowitz/native-navigation-boilerplate/blob/master/ios/Podfile#L12-L14

@JianYeee
Copy link

JianYeee commented Oct 31, 2017

@skhan02 thanks, it works for me

@Arvin-J
Copy link
Author

Arvin-J commented Oct 31, 2017

@xiaozi4624 All the third pod path must be absolute path. Not only DoubleConversion

@MuhammadAftabAslam
Copy link

Hi
I am facing the same issue. I have tried everything and wasted last 3 days
Please help me!!!!

@temitope
Copy link

temitope commented Mar 3, 2018

Also getting this bug as I try to make React Native work. :/ any solutions

@laynemoseley
Copy link

I was having this issue, but changed my Podfile to look exactly like this and it worked:

(You'll need to tweak what nm_path is based on your project)

nm_path = './rn/Teacher/node_modules/'
rn_path = nm_path + 'react-native/'
pod 'Folly', :podspec => rn_path + '/third-party-podspecs/Folly.podspec'
pod 'DoubleConversion', :podspec => rn_path + '/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => rn_path + '/third-party-podspecs/glog.podspec'

@facebook facebook locked as resolved and limited conversation to collaborators Oct 30, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 30, 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

7 participants