Skip to content

Commit 40d399a

Browse files
authored
Update libraries naming inside frameworks (#8815)
Take just the first path component of the provided directory
1 parent 80fcb41 commit 40d399a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/create_frameworks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ create_xcframework() {
7676
fi
7777

7878
local dir_suffix
79-
dir_suffix=$(echo "$dir" | tr '[:upper:]' '[:lower:]' | sed 's/\//-/g')
80-
local merged_lib="${output}/lib${target_library_name}-${dir_suffix}.a"
79+
dir_suffix=$(echo "$dir" | cut -d'/' -f1 | tr '[:upper:]' '[:lower:]' | sed 's/[\/\.~]/_/g')
80+
local merged_lib="${output}/lib${target_library_name}_${dir_suffix}.a"
8181

8282
# Remove the existing .a file if it exists.
8383
if [ -f "${merged_lib}" ]; then

0 commit comments

Comments
 (0)