diff --git a/stone/backends/swift_client.py b/stone/backends/swift_client.py index 85adebd2..69a30eb5 100644 --- a/stone/backends/swift_client.py +++ b/stone/backends/swift_client.py @@ -151,7 +151,7 @@ def generate(self, api): self._generate_client(api) self._generate_request_boxes(api) - if not self.args.objc: + if not self.args.objc and not self.args.objc_shim: self._generate_reconnection_helpers(api) # Argument cast when mapping a legacy objc route to an objc route diff --git a/stone/backends/swift_types.py b/stone/backends/swift_types.py index 130cc1c3..44434292 100644 --- a/stone/backends/swift_types.py +++ b/stone/backends/swift_types.py @@ -152,7 +152,7 @@ class SwiftTypesBackend(SwiftBaseBackend): cmdline_parser = _cmdline_parser def generate(self, api): rsrc_folder = os.path.join(os.path.dirname(__file__), 'swift_rsrc') - if not self.args.objc: + if not self.args.objc and not self.args.objc_shim: self.logger.info('Copying StoneValidators.swift to output folder') shutil.copy(os.path.join(rsrc_folder, 'StoneValidators.swift'), self.target_folder_path)