MCPcopy Create free account
hub / github.com/expo/expo / buildXcframeworkAsync

Method buildXcframeworkAsync

tools/src/prebuilds/XcodeProject.ts:113–127  ·  view source on GitHub ↗

* Builds universal `.xcframework` from given frameworks.

(
    frameworks: Framework[],
    options?: XcodebuildSettings
  )

Source from the content-addressed store, hash-verified

111 * Builds universal `.xcframework` from given frameworks.
112 */
113 async buildXcframeworkAsync(
114 frameworks: Framework[],
115 options?: XcodebuildSettings
116 ): Promise<string> {
117 const frameworkPaths = frameworks.map((framework) => framework.frameworkPath);
118 const outputPath = this.getXcframeworkPath();
119
120 await fs.remove(outputPath);
121
122 await this.xcodebuildAsync(
123 ['-create-xcframework', ...spreadArgs('-framework', frameworkPaths), '-output', outputPath],
124 options
125 );
126 return outputPath;
127 }
128
129 /**
130 * Removes `.xcframework` artifact produced by `buildXcframeworkAsync`.

Callers 1

Calls 5

getXcframeworkPathMethod · 0.95
xcodebuildAsyncMethod · 0.95
spreadArgsFunction · 0.85
mapMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected