Skip to content

Commit 4e33f3f

Browse files
committed
wip ∫ MAY 28 2025 10:04:39
1 parent d8ac866 commit 4e33f3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/create_frameworks.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function usage() {
2121
echo " --output: Optional output directory. Defaults to the current directory."
2222
echo ""
2323
echo "Example:"
24-
echo "$0 --directory=ios-arm64 --directory=ios-arm64-simulator --framework=\"mylib:lib1.a,lib2.a:include:MyModule\" --output=output/dir"
24+
echo "$0 --directory=ios --directory=ios-simulator --framework=\"mylib:lib1.a,lib2.a:include:MyModule\" --output=output/dir"
2525
exit 1
2626
}
2727

@@ -80,6 +80,10 @@ create_xcframework() {
8080

8181
local dir_suffix
8282
dir_suffix=$(echo "$dir" | cut -d'/' -f1 | tr '[:upper:]' '[:lower:]' | sed 's/[\/\.~]/_/g')
83+
# To support backwards compatibility, we want to retain the same naming formats.
84+
if [[ "$dir_suffix" == "ios-simulator" ]]; then
85+
dir_suffix="simulator"
86+
fi
8387
local merged_lib="${output}/lib${target_library_name}_${dir_suffix}.a"
8488

8589
# Remove the existing .a file if it exists.

0 commit comments

Comments
 (0)