Files
react-native/packages
Tomasz ŻelawskiandReact Native Bot 0a9ea3932a fix: ignore build/ and DerivedData/ dirs in when reading infoPlistFiles (#51833)
Summary:
https://github.com/facebook/react-native/pull/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:

![image](https://github.com/user-attachments/assets/6bd31907-66af-4ea5-b2a6-2847e0ee18e1)

This is how you enable relative build directories in XCode.

![Screenshot 2025-06-05 at 11 08 31](https://github.com/user-attachments/assets/22a555b4-a468-481d-8492-02c3b36bfa25)

## Changelog:

[IOS] [FIXED] - Ignore `build/` and `DerivedData/` directories when reading `.plist` files.

Pull Request resolved: https://github.com/facebook/react-native/pull/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
2025-06-09 13:57:31 +00:00
..
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 17:53:41 +00:00
2025-06-02 16:25:27 +00:00
2025-06-02 16:25:27 +00:00