From bcce38c05afa8aa72b9a4fcf1cf8ab1b51c90812 Mon Sep 17 00:00:00 2001 From: Yang Chao Date: Thu, 18 Jul 2024 00:20:17 +0800 Subject: [PATCH] fix: resolve Swift method name conflicts by adding missing namespace --- modules/objc/generator/gen_objc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/objc/generator/gen_objc.py b/modules/objc/generator/gen_objc.py index 58b7dd555c..c6f8f47be5 100755 --- a/modules/objc/generator/gen_objc.py +++ b/modules/objc/generator/gen_objc.py @@ -481,6 +481,7 @@ class FuncInfo(GeneralInfo): self.objc_name = "getelem" if self.namespace in namespaces_dict: self.objc_name = '%s_%s' % (namespaces_dict[self.namespace], self.objc_name) + self.swift_name = '%s_%s' % (namespaces_dict[self.namespace], self.swift_name) for m in decl[2]: if m.startswith("="): self.objc_name = m[1:]