prscX / react-native-app-tour

React Native: Native App Tour Library
Apache License 2.0
640 stars 119 forks source link

Pod install failed with React 0.60.4 #75

Closed itsdante closed 5 years ago

itsdante commented 5 years ago
[!] Invalid `Podfile` file: 
[!] Invalid `RNAppTour.podspec` file: No such file or directory @ rb_sysopen - /Users/machintos/Documents/GitHub/project/node_modules/react-native-app-tour/ios/package.json.

Hey everyone, I just upgraded to 0.60.4 from 0.57, the library works well in the version but we had to upgrade to use some libraries. Now my problem lies with the "pod install" command after npm install. The project is new (some of the libraries weren't updating, so we decided to create a new project) and there were no problems with running the command with other libraries. But once I install react-native-app-tour, the pod install crashed with the error above

arielayaviri commented 5 years ago

Same problem here. Appreciate any help.

TheNasCrazy commented 5 years ago

Up ???

itsdante commented 5 years ago

@arielayaviri @TheNasCrazy I manage to actually fixed it, the RNAppTTour.podspec, is located within the ios folder, but it reference the package.json in the ios directory, while the package.json file is located one level outside of the folder. Please change to

../package.json

from

package.json

in the RNAppTour.podspec file

TheNasCrazy commented 5 years ago

@itsdante But when I change and I try pod install il my project I Got : [!] No podspec found for RNAppTour in ../node_modules/react-native-app-tour

arielayaviri commented 5 years ago

@itsdante thanks I'll try and let you know. I remember I did that before and had some problems with the pod install command similar to what @TheNasCrazy had. I'll try again. Thanks