8000 Remove empty `()` from PBXFileSystemSynchronizedRootGroup exceptions output by yimajo · Pull Request #1012 · CocoaPods/Xcodeproj · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove empty () from PBXFileSystemSynchronizedRootGroup exceptions output #1012

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yimajo
Copy link
@yimajo yimajo commented Apr 15, 2025

Background

When using "Convert to Folder" on groups in projects within a CocoaPods workspace, an empty exceptions = (); entry is unnecessarily added to the pbxproj file.

Why This Is a Problem

There's no need to include this empty configuration when there are no exceptions. If it were truly necessary, Xcode itself would add exceptions = (); when performing the Convert to Folder operation. These unnecessary entries make the project file needlessly complex and create unwanted diffs.

Solution

The PBXNativeTarget class in this project already overrides the to_hash_as method to exclude empty collections (like packageProductDependencies) from serialization.

By extending the PBXFileSystemSynchronizedRootGroup class with a similar approach, we can prevent empty exceptions collections from being serialized, eliminating the unnecessary exceptions = (); entries in pbxproj files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0