             productReference = objectReferenceRepository.getOrCreate(reference: productRefString, objects: objects)
         }
         settings = try container.decodeIfPresent([String: Any].self, forKey: .settings)
+        platformFilter = try container.decodeIfPresent(.platformFilter)
         try super.init(from: decoder)
     }
 }

        case fileRef
        case settings
        case productRef
    }

    public required init(from decoder: Decoder) throws {

        if let settings = buildFile.settings {
            dictionary["settings"] = settings.plist()
        }
        if let platformFilter = buildFile.platformFilter {
            dictionary["platformFilter"] = .string(.init(platformFilter))
        }
        let comment = try buildPhase.name().flatMap { "\(try buildFile.fileName() ?? "(null)") in \($0)" }
        return (key: CommentedString(reference, comment: comment),
                value: .dictionary(dictionary))
