From d044f0184ad6d59b3addf7a05fa21bf22aebb6ec Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Thu, 27 Feb 2025 20:48:02 -0800 Subject: [PATCH] Update libraries naming inside frameworks Take just the first path component of the provided directory --- build/create_frameworks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/create_frameworks.sh b/build/create_frameworks.sh index a55c4aed1e7..804a5156e0b 100755 --- a/build/create_frameworks.sh +++ b/build/create_frameworks.sh @@ -76,8 +76,8 @@ create_xcframework() { fi local dir_suffix - dir_suffix=$(echo "$dir" | tr '[:upper:]' '[:lower:]' | sed 's/\//-/g') - local merged_lib="${output}/lib${target_library_name}-${dir_suffix}.a" + dir_suffix=$(echo "$dir" | cut -d'/' -f1 | tr '[:upper:]' '[:lower:]' | sed 's/[\/\.~]/_/g') + local merged_lib="${output}/lib${target_library_name}_${dir_suffix}.a" # Remove the existing .a file if it exists. if [ -f "${merged_lib}" ]; then