code: def get_files_by_name(self, name, parent=None):
          
          if parent is not None:
              parent = self._get_parent_group(parent)
  
          files = []
          for file_ref in self.objects.get_objects_in_section(u'PBXFileReference'):
              if file_ref.get_name() == name and (parent is None or parent.has_child(file_ref.get_id())):
                  files.append(file_ref)
  
          return files
docs: Gets all the files references that have the given name, under the specified parent PBXGroup object or
          PBXGroup id.
          :param name: name of the file to be retrieved
          :param parent: PBXGroup that should be used to narrow the search or None to retrieve files from all project
          :return: List of all PBXFileReference that match the name and parent criteria.