Skip to content
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

Update PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet to correctly support build_phase attribute pointing to PBXCopyFilesBuildPhase #986

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

amorde
Copy link
Member

@amorde amorde commented Oct 26, 2024

Follow up to #985

If adding a target such as a static library with Objective-C language selected, the Copy Files build phase will have an exception set for the public headers.

Example:

/* Begin PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet section */
	0782A2F32CCD962C007072F5 /* PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet */ = {
		isa = PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet;
		buildPhase = 0782A2EB2CCD962C007072F5 /* CopyFiles */;
		membershipExceptions = (
			Objc_iOS_StaticLibrary.h,
		);
	};
/* End PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet section */

When attempting to read this project an error would occur:

[Xcodeproj] Type checking error: got `PBXCopyFilesBuildPhase` for attribute: Attribute `buildPhase` (type: `to_one`, classes: `["PBXSourcesBuildPhase"]`, owner class: `PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet`)

… to correctly support build_phase attribute pointing to PBXCopyFilesBuildPhase
@amorde amorde merged commit 6b86998 into master Oct 26, 2024
4 checks passed
@amorde amorde deleted the amorde/build-phase-exception-set-fix branch October 26, 2024 21:43
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