-
Notifications
You must be signed in to change notification settings - Fork 24.8k
fix: ignore build/ and DerivedData/ dirs in when reading infoPlistFiles #51833
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
Conversation
Thanks for fixing this! 🙏 |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in c783128. |
This pull request was successfully merged by @tjzel in c783128 When will my fix make it into a release? | How to file a pick request? |
@tjzel I just hit this for xcarchive files as well. Took a while to debug to find that it was a binary plist causing a |
…es (#51833) Summary: #49927 introduced a regression where a Ruby script would read compilation artifacts and fail, when the user has relative build directories set in XCode. After successful compilation `build/` dir and `DerivedData/` dir have `.plist` files that aren't in UTF-8 encoding and shouldn't be read by the script. If the user tries to reinstall pods at this point, he gets the following error:  This is how you enable relative build directories in XCode.  ## Changelog: [IOS] [FIXED] - Ignore `build/` and `DerivedData/` directories when reading `.plist` files. Pull Request resolved: #51833 Test Plan: After applying this patch the problem doesn't occur anymore on my machine. Reviewed By: cortinico Differential Revision: D76030133 Pulled By: cipolleschi fbshipit-source-id: 7ae8c2d0ce28b6925245a9172154e3dcafee126f
This pull request was successfully merged by @tjzel in 0a9ea39 When will my fix make it into a release? | How to file a pick request? |
#2975) ## Description Bump example apps to `[email protected]` in order to fix issues with installing pods (facebook/react-native#51833). ## Changes - bump version of `react-native` and related libraries (from upgrade-helper) - bump lockfiles ## Test code and steps to reproduce I tested that both example apps build and run on Android and iOS. ## Checklist - [x] Included code example that can be used to test this change
I still have this issue. The Infoplist in my main project contains Chinese. [email protected] |
Summary:
#49927 introduced a regression where a Ruby script would read compilation artifacts and fail, when the user has relative build directories set in XCode.
After successful compilation
build/
dir andDerivedData/
dir have.plist
files that aren't in UTF-8 encoding and shouldn't be read by the script. If the user tries to reinstall pods at this point, he gets the following error:This is how you enable relative build directories in XCode.
Changelog:
[IOS] [FIXED] - Ignore
build/
andDerivedData/
directories when reading.plist
files.Test Plan:
After applying this patch the problem doesn't occur anymore on my machine.