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

Add PBXTarget Related Properties and Diff Fixes #241

Merged
merged 4 commits into from
Mar 7, 2018

Conversation

briantkelley
Copy link
Contributor

@briantkelley briantkelley commented Mar 7, 2018

Short description 📝

Add properties PBXTarget and friends to support additional optional properties in the Xcode project file and eliminate some diff noise as well.

Solution 📦

Add a productInstallPath to PBXNativeTarget and a name property to PBXTargetDependency, which was discovered while analyzing the 218 in our code base. Fix diff noise when writing PBXAggregateTarget.

Implementation 👩‍💻👨‍💻

  • Verify Xcode omits the buildRules for PBXAggregateTarget even if the user adds a custom rule

This change is Reviewable

The productInstallPath is a PBXNativeTarget-specific property. Add support for reading and writing the property so it’s not lost when round-tripping projects that use it with xcproj.

It’s not clear to me if this is still accessible in the Xcode UI or if it’s only a carryover from legacy projects.
While roundtripping many projects through xcproj, I discovered some PBXTargetDependency objects have a name property. Implement support for reading and writing it so it’s not lost when proejcts are edited by xcproj.
Xcode doesn’t support build rules for PBXAggregateTarget. Although the UI shows the Build Rules tab, they’re never written to the file. Update xcproj to follow the same behavior to eliminate diffs.
Copy link
Contributor

@pepicrft pepicrft left a comment

Choose a reason for hiding this comment

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

Great job 👏 @briantkelley

@briantkelley briantkelley merged commit 3c95e75 into master Mar 7, 2018
@pepicrft pepicrft deleted the pbxtarget-fixes branch March 8, 2018 08:40
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.

None yet

2 participants