-
Notifications
You must be signed in to change notification settings - Fork 884
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
unknown tag !<!ruby/object:Pathname> when using with react-native-unimodules #805
Comments
It seems like this line is the culprit -
When I do not know if Cocoapods guarantees that |
Changed that file to
With a test file of
Tried to create a PR but looks like I'm getting 403 permission denied when trying to push a branch. |
@Titozzz @orta can you advise here? |
@Maushundb, just wanted to say - great investigation here! I appreciate writing this all down including reproductions and some troubleshooting. |
Ah I see, yeah happy to put up a PR if yall think excluding invalid parts of the file is the right way to go about it. |
Hrm yeah, the ruby yaml parser must be leaking internal state - think @Maushundb has a solid answer above |
@Maushundb Thanks for this find! I just ran into this issue while I was trying to upgrade React Native from 0.59.1 to 0.61.2. How can I implement this fix into my project? |
For now I'd suggest using patch-package to implement the fix to that file (in your repo it'll be babelified, but still readable) until this is fixed and released. |
In case this is helpful to anyone else with this same problem, the path for me to fix this issue was
with the solution provided above:
Not sure if this will work for most people (or anyone else), but thought I should share 😄 |
PR at #810 |
For a quick fix, you can use : "resolutions": {
"@react-native-community/cli-platform-ios": "2.9.0"
} in your package.json to force the version |
Thanks. @react-native-community/cli-platform-ios 3.0.0-alpha.7 is not ok |
I am still experience same issue with version 3.0.0 :( |
Are you sure you're on the right version? If you're using RN, make sure you set your resolutions in package.json so that the CLI version gets resolved correctly:
|
Environment
Description
We use react-native-unimodules, which require us to add a
use_unimodules!
to ourPodfile
, and ourPodfile.lock
then has entries like this:Running
react-native run-ios
then results in an error:It seems that
_warnAboutPodInstall
fails on checking Podfile.lock, and the entire command fails. Commenting out that line inrunIOS/index.js
fixes this.Reproducible Demo
Hopefully info above is enough, let me know if not. Note that this happens on 3.0.0-alpha* but not on 2.9.0m, which doesn't have that check.
The text was updated successfully, but these errors were encountered: