Skip to content

[0.80] fix: ignore build/ and DerivedData/ dirs in when reading infoPlistFiles #975

@tjzel

Description

@tjzel

Target Branch

0.80

Link to commit or PR to be picked

facebook/react-native#51833

Description

Summary:

facebook/react-native#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

This is how you enable relative build directories in XCode.

Screenshot 2025-06-05 at 11 08 31

Changelog:

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

Test Plan:

After applying this patch the problem doesn't occur anymore on my machine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions