Skip to content

Commit

Permalink
remove empty TargetAttributes from result pbxproj as Xcode 16 do each…
Browse files Browse the repository at this point in the history
… run
  • Loading branch information
Maxim Kholyavkin committed Oct 9, 2024
1 parent babd249 commit 013cc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/XcodeProj/Objects/Project/PBXProject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ extension PBXProject: PlistSerializable {
(value as? PBXObject)?.reference.value ?? value
}
}
plistAttributes[PBXProject.targetAttributesKey] = plistTargetAttributes
plistAttributes[PBXProject.targetAttributesKey] = plistTargetAttributes.isEmpty ? nil : plistTargetAttributes

dictionary["attributes"] = plistAttributes.plist()

Expand Down

0 comments on commit 013cc79

Please sign in to comment.