Skip to content

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

Merged
amorde merged 1 commit into
masterfrom
amorde/build-phase-exception-set-fix
Oct 26, 2024
Merged

Update PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet to correctly support build_phase attribute pointing to PBXCopyFilesBuildPhase#986
amorde merged 1 commit into
masterfrom
amorde/build-phase-exception-set-fix

Conversation

@amorde
Copy link
Copy Markdown
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
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