                 let sourceFile = generateSourceFile(targetType: targetType,
                                                     targetSource: targetSource,
                                                     path: filePath,
-                                                    fileRefenrece: variantGroup)
+                                                    fileReference: variantGroup)
                 allSourceFiles.append(sourceFile)
             }
         }

                    let sourceFile = generateSourceFile(targetType: targetType,
                                                        targetSource: targetSource,
                                                        path: filePath,
                                                        fileRefenrece: fileReference)
                    allSourceFiles.append(sourceFile)
                    groupChildren.append(fileReference)
                }

        _ = try getSourceFiles(targetType: .none, targetSource: TargetSource(path: path), path: fullPath)
    }

    func generateSourceFile(targetType: PBXProductType, targetSource: TargetSource, path: Path, buildPhase: TargetSource.BuildPhase? = nil, fileReference: PBXFileElement? = nil) -> SourceFile {
        let fileReference = fileReference ?? fileReferencesByPath[path.string.lowercased()]!
        var settings: [String: Any] = [:]
        var attributes: [String] = targetSource.attributes
        var chosenBuildPhase: TargetSource.BuildPhase?
