From 85d102bc6eb5564115986b9521b6e54bbcd05761 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 20 Aug 2021 18:29:25 +0300 Subject: [PATCH] Fix multiple generators in target in Xcode. --- mesonbuild/backend/xcodebackend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py index 2d1caaefa..6e12cbd3d 100644 --- a/mesonbuild/backend/xcodebackend.py +++ b/mesonbuild/backend/xcodebackend.py @@ -1005,9 +1005,9 @@ class XCodeBackend(backends.Backend): self.write_tree(objects_dict, project_tree, target_children, '') def write_tree(self, objects_dict, tree_node, children_array, current_subdir): - subdir_dict = PbxDict() - subdir_children = PbxArray() for subdir_name, subdir_node in tree_node.subdirs.items(): + subdir_dict = PbxDict() + subdir_children = PbxArray() subdir_id = self.gen_id() objects_dict.add_item(subdir_id, subdir_dict) children_array.add_item(subdir_id)