File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function usage() {
21
21
echo " --output: Optional output directory. Defaults to the current directory."
22
22
echo " "
23
23
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"
25
25
exit 1
26
26
}
27
27
@@ -80,6 +80,10 @@ create_xcframework() {
80
80
81
81
local dir_suffix
82
82
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
83
87
local merged_lib=" ${output} /lib${target_library_name} _${dir_suffix} .a"
84
88
85
89
# Remove the existing .a file if it exists.
You can’t perform that action at this time.
0 commit comments