-
Notifications
You must be signed in to change notification settings - Fork 39
fix: mapping build phases with exceptions #122
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
Conversation
| } else { | ||
| return "Unknown" |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
| .package( | ||
| url: "https://github.com/adincebic/XcodeProj", | ||
| branch: "support/PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet" | ||
| ), |
There was a problem hiding this comment.
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
Adds support for correctly mapping build phase file references from synchronized groups.
The support for the
PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSetinXcodeProjis added via tuist/XcodeProj#894