module.exports = function removeFromProjectReferences(project, file) {
  const firstProject = project.getFirstProject().firstProject;

  const projectRef = firstProject.projectReferences.find(item => item.ProjectRef === file.uuid);

  if (!projectRef) {
    return null;
  }

  firstProject.projectReferences.splice(
    firstProject.projectReferences.indexOf(projectRef),
    1
  );

  return projectRef;
};

@@ -1,8 +1,394 @@
+/**%0A * For each file (.xcodeproj), there's an entry in %60projectReferences%60 created%0A * that has two entries - %60ProjectRef%60 - reference to a file.uuid and%0A * %60ProductGroup%60 - uuid of a Products group.%0A *%0A * When projectReference is found - it's deleted and the removed value is returned%0A * so that ProductGroup in PBXGroup section can be removed as well.%0A *%0A * Otherwise returns null%0A */%0A
 module.e

Add docs