Handle membership exceptions for synchronized root groups#1587
Handle membership exceptions for synchronized root groups#1587mirkokg wants to merge 1 commit intoyonaskolb:masterfrom
Conversation
Adds logic to detect and register membership exceptions for PBXFileSystemSynchronizedRootGroup objects, specifically excluding Info.plist files from group membership when necessary. Also ensures resources build phase is added if synchronized root groups are present.
|
I also created a PR to fix TEMP_ prefixes for PBXFileSystemSynchronizedBuildFileExceptionSet tuist/XcodeProj#1014 in Xcodeproj, but besides cosmetic problem this issue does not affect XcodeGen negatively. |
|
@yonaskolb please review and let me know if you would change anything. I tested with my projects and all worked perfectly with my version. |
|
@yonaskolb my PR for TEMP_ prefixes is merged now in XcodeProj, can you help with merging this? |
|
@mirkokg @yonaskolb Any update on this? |
|
@hiragram to be honest, I have no idea why is it taking so long. |
|
Hi @mirkokg, thank you for the changes, they look good. Also currently |
Adds logic to detect and register membership exceptions for PBXFileSystemSynchronizedRootGroup objects, specifically excluding Info.plist files from group membership when necessary. Also ensures resources build phase is added if synchronized root groups are present.
I noticed that current implementation of synchronizedGroups does not ignore Info.plist.
I inspected default Xcode behavior and noticed that when you create new Xcode project you get empty copy Resources section:
If this empty PBXResourcesBuildPhase is not present xcassets will not be copied automatically for syncedFolder.
I also noticed that by default it adds Info.plist to ignore list as PBXFileSystemSynchronizedBuildFileExceptionSet:
There are three functionalities implemented with this patch:
This patch fixes an issue with synchronized folders reported by @KieranHarper :
#1586