-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Use (null) in comment when PBXBuildFile.name == nil #203
Conversation
When generating the comment for a PBXBuildFile or reference to a PBXBuildFile that doesn't have the name property set, Xcode emits the string "(null)" in lieu of an actual name. Update xcproj to match the behavior so it can roundtrip files without noise.
That's pretty funny. Does Xcode actually go so far as to rewrite a missing comment as |
It does 🙃 |
Ok cool 🤷♂️ Feel free to merge. The downside of making people add their own changelogs is the merge conflicts... |
Generated by 🚫 Danger |
To bad Shakira, Github's conflict resolver UI only does merge, not rebase. Squashing when merging this though 😉 |
Seriously? |
Another way to manager the changelog is to have a release task write the list of merged PR's since the last version to the changelog automatically using the title, url and author 👍 |
Yeah, I thought about that one @yonaskolb but then people would need to tag somehow the PRs to know the kind of change that they are introducing and use proper titles that very descriptive. I'll check how other open-source projects are doing it. |
When generating the comment for a PBXBuildFile or reference to a PBXBuildFile that doesn't have the name property set, Xcode emits the string "(null)" in lieu of an actual name. Update xcproj to match the behavior so it can roundtrip files without noise.
Short description 📝
When a
PBXBuildFile
is missing the name property, xcproj doesn't emit a comment for the encoding of the object or references to it. Xcode emites the string"(null)"
.Solution 📦
Update the comment generation of
PBXBuildFile
and comment generation inPBXBuildPhase
to use the string"(null)"
when thePBXProj.Objects.fileName(buildFileReference:)
returnnil
.This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)