Skip to content

Commit 5630827

Browse files
committed
Remove trailing slash from .framework search
1 parent a3255c5 commit 5630827

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • packages/react-native/scripts/ios-prebuild

packages/react-native/scripts/ios-prebuild/build.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ function computeFrameworkPaths(
3131
const frameworks = globSync('**/*.framework', {
3232
cwd: productsFolder,
3333
expandDirectories: false,
34-
onlyFiles: false,
34+
onlyDirectories: true,
3535
absolute: true,
36+
}).map(framework => {
37+
// NOTE: tinyglobby outputs a trailing slash for directories
38+
return framework[framework.length - 1] === '/'
39+
? framework.slice(0, -1)
40+
: framework;
3641
});
3742

3843
if (frameworks.length === 0) {

0 commit comments

Comments
 (0)