How to use the xcode/lib/pbxFile function in xcode

To help you get started, we’ve selected a few xcode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-community / cli / packages / platform-ios / src / link / addFileToProject.ts View on Github external
export default function addFileToProject(project: any, filePath: string) {
  const file = new PbxFile(filePath);
  file.uuid = project.generateUuid();
  file.fileRef = project.generateUuid();
  project.addToPbxFileReferenceSection(file);
  return file;
}
github react-native-community / cli / packages / platform-ios / src / link / removeFromStaticLibraries.ts View on Github external
export default function removeFromStaticLibraries(
  project: any,
  path: string,
  opts: {[key: string]: any},
) {
  const file = new PbxFile(path);

  file.target = opts ? opts.target : undefined;

  project.removeFromPbxFileReferenceSection(file);
  project.removeFromPbxBuildFileSection(file);
  project.removeFromPbxFrameworksBuildPhase(file);
  project.removeFromLibrarySearchPaths(file);
  removeFromPbxReferenceProxySection(project, file);

  return file;
}
github react-native-community / cli / packages / platform-ios / src / link / removeProjectFromProject.ts View on Github external
export default function removeProjectFromProject(
  project: any,
  filePath: string,
) {
  const file = project.removeFromPbxFileReferenceSection(new PbxFile(filePath));
  const projectRef = removeFromProjectReferences(project, file);

  if (projectRef) {
    removeProductGroup(project, projectRef.ProductGroup);
  }

  removeFromPbxItemContainerProxySection(project, file);

  return file;
}

xcode

parser for xcodeproj/project.pbxproj files

Apache-2.0
Latest version published 5 years ago

Package Health Score

81 / 100
Full package analysis