* Builds universal `.xcframework` from given frameworks.
(
frameworks: Framework[],
options?: XcodebuildSettings
)
| 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`. |
no test coverage detected