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 @@ -131,11 +131,17 @@ export function determineXCFrameworkFilename(
131131}
132132
133133export async function createUniversalAppleLibrary ( libraryPaths : string [ ] ) {
134+ assert (
135+ libraryPaths . length > 0 ,
136+ "Expected at least one library to create a universal library" ,
137+ ) ;
134138 // Determine the output path
135139 const filenames = new Set ( libraryPaths . map ( ( p ) => path . basename ( p ) ) ) ;
136140 assert (
137141 filenames . size === 1 ,
138- "Expected all darwin libraries to have the same name" ,
142+ `Expected libraries to have the same name, but got: ${ [ ...filenames ] . join (
143+ ", " ,
144+ ) } `,
139145 ) ;
140146 const [ filename ] = filenames ;
141147 const lipoParentPath = fs . realpathSync (
You can’t perform that action at this time.
0 commit comments