         }
     }
 
+    /// Generates the reference for the project and its target.
+    ///
+    /// - Parameters:
+    ///   - project: project whose reference will be generated.
+    ///   - identifiers: list of identifiers.
     func generateProjectAndTargets(project: PBXProject,
                                    identifiers: [String]) {
+        // Project
         if project.reference.temporary {
             project.reference.fix(generate(identifiers: identifiers))
         }
 
+        // Targets
         let targets: [PBXTarget] = project.targetsReferences.compactMap({ try? $0.object() as PBXTarget })
-
-        // Targets
         targets.forEach { target in
 
             var identifiers = identifiers

            identifiers.append(name)
        }

        if buildPhase.reference.temporary {
            buildPhase.reference.fix(generate(identifiers: identifiers))
        }

        buildPhase.filesReferences.forEach { buildFileReference in
            if !buildFileReference.temporary { return }


        if let name = buildRule.name {
            identifiers.append(name)
        }

        // Build rule
        if buildRule.reference.temporary {
            buildRule.reference.fix(generate(identifiers: identifiers))
        }
