Skip to content

Update PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet to support PBXResourcesBuildPhase#1029

Open
triplef wants to merge 1 commit into
CocoaPods:masterfrom
triplef:fix-build-phase-exception
Open

Update PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet to support PBXResourcesBuildPhase#1029
triplef wants to merge 1 commit into
CocoaPods:masterfrom
triplef:fix-build-phase-exception

Conversation

@triplef
Copy link
Copy Markdown

@triplef triplef commented Nov 21, 2025

When adding a bundle (such as an .mlpackage) inside an Xcode folder to a target, the "Copy Resources" phase will have an exception like this:

86522D262ED065A3005F54C6 /* Exceptions for "MyFolder" folder in "Copy Bundle Resources" phase from "MyApp" target */ = {
	isa = PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet;
	buildPhase = 7AA69A92145AF32700190537 /* Resources */;
	membershipExceptions = (
		MyModel.mlpackage,
	);
};

When attempting to read this project an error would occur:

[Xcodeproj] Type checking error: got `PBXResourcesBuildPhase` for attribute: Attribute `buildPhase` (type: `to_one`, classes: `["PBXSourcesBuildPhase", "PBXCopyFilesBuildPhase"]`, owner class: `PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet`) - 7AA69A92145AF32700190537 <Nanaimo::Dictionary {"isa"=>"PBXResourcesBuildPhase", "buildActionMask"=>"2147483647", "runOnlyForDeploymentPostprocessing"=>"0", "files"=>[]}>

Note that a PBXResourcesBuildPhase doesn't have a name, so I had to adjust the display_name method accordingly.

See also #986.

@triplef triplef force-pushed the fix-build-phase-exception branch from 8dd322b to 3921817 Compare November 21, 2025 09:37
@triplef triplef force-pushed the fix-build-phase-exception branch from 3921817 to 106a976 Compare November 21, 2025 09:44
@egec1
Copy link
Copy Markdown

egec1 commented Feb 2, 2026

What are we waiting to merge this?

@xavierserrai
Copy link
Copy Markdown

Dears,

Is this project currently maintained or will this be discontinued as the whole cocoapods repository?

Thanks,

@endocrimes

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.

3 participants