MCPcopy Create free account
hub / github.com/bndkt/react-native-app-clip / addProductFile

Function addProductFile

plugin/src/xcode/addProductFile.ts:3–25  ·  view source on GitHub ↗
(
  xcodeProject: XcodeProject,
  { targetName, groupName }: { targetName: string; groupName: string },
)

Source from the content-addressed store, hash-verified

1import type { XcodeProject } from "expo/config-plugins";
2
3export function addProductFile(
4 xcodeProject: XcodeProject,
5 { targetName, groupName }: { targetName: string; groupName: string },
6) {
7 const options = {
8 basename: `${targetName}.app`,
9 // fileRef: xcodeProject.generateUuid(),
10 // uuid: xcodeProject.generateUuid(),
11 group: groupName,
12 explicitFileType: "wrapper.application",
13 /* fileEncoding: 4, */
14 settings: {
15 ATTRIBUTES: ["RemoveHeadersOnCopy"],
16 },
17 includeInIndex: 0,
18 path: `${targetName}.app`,
19 sourceTree: "BUILT_PRODUCTS_DIR",
20 };
21
22 const productFile = xcodeProject.addProductFile(targetName, options);
23
24 return productFile;
25}

Callers 1

withXcodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected