old_contents: from conans.model import Generator
  from conans.paths import BUILD_INFO_XCODE
  
  
  class XCodeGenerator(Generator):
  
      template = '''
  HEADER_SEARCH_PATHS = $(inherited) {include_dirs}
  LIBRARY_SEARCH_PATHS = $(inherited) {lib_dirs}
  OTHER_LDFLAGS = $(inherited) {linker_flags} {libs}
  
  GCC_PREPROCESSOR_DEFINITIONS = $(inherited) {compiler_flags}
  OTHER_CFLAGS = $(inherited)
  OTHER_CPLUSPLUSFLAGS = $(inherited)
  '''
  
      def __init__(self, deps_cpp_info, cpp_info):
          super(VisualStudioGenerator, self).__init__(deps_cpp_info, cpp_info)
          self.include_dirs = " ".join('"%s"' % p.replace("\\", "/")
                                       for p in deps_cpp_info.include_paths)
          self.lib_dirs = " ".join('"%s"' % p.replace("\\", "/")
                                   for p in deps_cpp_info.lib_paths)
          self.libs = " ".join(['-l%s' % lib for lib in deps_cpp_info.libs])
          self.definitions = " ".join('"%s"' % d for d in deps_cpp_info.defines)
          self.compiler_flags = " ".join(deps_cpp_info.cppflags + deps_cpp_info.cflags)
          self.linker_flags = " ".join(deps_cpp_info.sharedlinkflags)
  
      @property
      def filename(self):
          return BUILD_INFO_XCODE
  
      @property
      def content(self):
          return self.template.format(**self.__dict__)
  
new_contents: from conans.model import Generator
  from conans.paths import BUILD_INFO_XCODE
  
  
  class XCodeGenerator(Generator):
  
      template = '''
  HEADER_SEARCH_PATHS = $(inherited) {include_dirs}
  LIBRARY_SEARCH_PATHS = $(inherited) {lib_dirs}
  OTHER_LDFLAGS = $(inherited) {linker_flags} {libs}
  
  GCC_PREPROCESSOR_DEFINITIONS = $(inherited) {compiler_flags}
  OTHER_CFLAGS = $(inherited)
  OTHER_CPLUSPLUSFLAGS = $(inherited)
  '''
  
      def __init__(self, deps_cpp_info, cpp_info):
          super(XCodeGenerator, self).__init__(deps_cpp_info, cpp_info)
          self.include_dirs = " ".join('"%s"' % p.replace("\\", "/")
                                       for p in deps_cpp_info.include_paths)
          self.lib_dirs = " ".join('"%s"' % p.replace("\\", "/")
                                   for p in deps_cpp_info.lib_paths)
          self.libs = " ".join(['-l%s' % lib for lib in deps_cpp_info.libs])
          self.definitions = " ".join('"%s"' % d for d in deps_cpp_info.defines)
          self.compiler_flags = " ".join(deps_cpp_info.cppflags + deps_cpp_info.cflags)
          self.linker_flags = " ".join(deps_cpp_info.sharedlinkflags)
  
      @property
      def filename(self):
          return BUILD_INFO_XCODE
  
      @property
      def content(self):
          return self.template.format(**self.__dict__)
  
subject: Fix copy and paste error