File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/host/src/node/prebuilds Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,17 @@ export function determineXCFrameworkFilename(
147147}
148148
149149export async function createUniversalAppleLibrary ( libraryPaths : string [ ] ) {
150+ assert (
151+ libraryPaths . length > 0 ,
152+ "Expected at least one library to create a universal library" ,
153+ ) ;
150154 // Determine the output path
151155 const filenames = new Set ( libraryPaths . map ( ( p ) => path . basename ( p ) ) ) ;
152156 assert (
153157 filenames . size === 1 ,
154- "Expected all darwin libraries to have the same name" ,
158+ `Expected libraries to have the same name, but got: ${ [ ...filenames ] . join (
159+ ", " ,
160+ ) } `,
155161 ) ;
156162 const [ filename ] = filenames ;
157163 const lipoParentPath = fs . realpathSync (
You can’t perform that action at this time.
0 commit comments