Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

fix: mapping build phases with exceptions#122

Merged
fortmarek merged 4 commits intomainfrom
fix/build-phase-exceptions
Feb 18, 2025
Merged

fix: mapping build phases with exceptions#122
fortmarek merged 4 commits intomainfrom
fix/build-phase-exceptions

Conversation

@fortmarek
Copy link
Member

Adds support for correctly mapping build phase file references from synchronized groups.

The support for the PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet in XcodeProj is added via tuist/XcodeProj#894

Comment on lines +11 to +12
} else {
return "Unknown"
Copy link
Member Author

@fortmarek fortmarek Feb 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fly-by fix: The bundle identifier can defined in an xcconfig in which case we don't read it. To properly fix this, we should read and parse xcconfigs to get the correct value. For now, we default to Unknown instead of failing when the project is correctly defined.

{
let path = try AbsolutePath(validating: pathString)
if try await fileSystem.exists(path, isDirectory: true),
if (try? await fileSystem.exists(path, isDirectory: true)) ?? false,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fly-by fix: if path is not valid, we'd throw here. Instead, we default to false now

Package.swift Outdated
Comment on lines +83 to +86
.package(
url: "https://github.com/adincebic/XcodeProj",
branch: "support/PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet"
),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the prerequisite PR is merged, will move this back to tuist/XcodeProj

@fortmarek fortmarek merged commit 57aa7d6 into main Feb 18, 2025
7 checks passed
@fortmarek fortmarek deleted the fix/build-phase-exceptions branch February 18, 2025 16:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants