React-native-navigation: Podfile is not updating correctly with upgrades

Created on 1 Feb 2020  路  8Comments  路  Source: wix/react-native-navigation

### Issue Description

Currently, when updating RNN, the Podfile is not being updated correctly.

I will include a few screenshots of the upgrading process with RNN and react-native-device-info then you can see the process/expected behavior/issue.

### Steps to Reproduce / Code Snippets / Screenshots

  1. Increase the version number of RNN in package.json
    image
  1. Run yarn install to bring in the new package
  2. cd ios
  3. pod install

image

Current behavior:
RNN is not being updated, while other packages are being updated

Expected behavior:
RNN also gets updated without deleting the Podfile.lock

All 8 comments

This is very interesting. I never saw this happening when I do my upgrades. Could it be some local environment setup issue? Also I'm not entirely sure if this would be the RNN issue since it does seem to be upgrading after deleting the Podfile.lock file.

Hmm strange, I'm only having this issue with RNN and my teammates have the same issue.

I'm not sure how to combat this man to be honest. This is the screenshot of me updating RNN and it worked fine. You could try on fresh setup if that fixes it then slowly add your setup and identify the root cause. But yeah I don't know what to tell you 馃槗

Screen Shot 2020-02-04 at 9 02 59 am

Hmm interesting!
Do you have this line in your Podfile
pod 'ReactNativeNavigation', :podspec => '../node_modules/react-native-navigation/ReactNativeNavigation.podspec'

Oh, you will need to delete that line. It should work without that line!

That indeed fixes the issue and then it's working as it should!

I just verified in the docs, the install guide is telling to add that line. Maybe we should remove it.

https://wix.github.io/react-native-navigation/#/docs/Installing?id=installation-with-cocoapods

Yeah it seems like the doc isn't reflecting the react-native autolink. I believe the team is working on the new doc at the moment so let's give it few days 馃

Updated the docs in v5 branch. Thanks guys 馃憤

Was this page helpful?
0 / 5 - 0 ratings