                     // add SourceFile to group if there is no Base.lproj directory
                     let sourceFile = generateSourceFile(targetType: targetType,
                                                         targetSource: targetSource,
-                                                        path: filePath)
+                                                        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) -> SourceFile {
        let fileReference = fileReferencesByPath[path.string.lowercased()]!
        var settings: [String: Any] = [:]
        var attributes: [String] = targetSource.attributes
        var chosenBuildPhase: TargetSource.BuildPhase?

                let variantGroup = getVariantGroup(path: filePath, inPath: path)
                groupChildren.append(variantGroup)
                baseLocalisationVariantGroups.append(variantGroup)
                
                let sourceFile = generateSourceFile(targetType: targetType,
                                                    targetSource: targetSource,
                                                    path: filePath,
                                                    fileRefenrece: variantGroup)
                allSourceFiles.append(sourceFile)
            }
        }

