File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ jobs:
4141 ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../tvos-src-log.md
4242 - name : do compile macos libs
4343 run : |
44- ./macos/compile-any.sh -a 'arm64 x86_64' - c build -l ${{ env.LIB_NAME }}
44+ ./macos/compile-any.sh -c build -l ${{ env.LIB_NAME }}
4545 - name : do compile ios libs
4646 run : |
47- ./ios/compile-any.sh -a 'arm64 x86_64_simulator' - c build -l ${{ env.LIB_NAME }}
47+ ./ios/compile-any.sh -c build -l ${{ env.LIB_NAME }}
4848 - name : do compile tvos libs
4949 run : |
50- ./tvos/compile-any.sh -a 'arm64 arm64_simulator' - c build -l ${{ env.LIB_NAME }}
50+ ./tvos/compile-any.sh -c build -l ${{ env.LIB_NAME }}
5151 - name : Zip apple xcframework
5252 run : |
5353 cd build/product/xcframework
Original file line number Diff line number Diff line change @@ -53,11 +53,15 @@ do_lipo_lib() {
5353 fi
5454 done
5555
56- xcrun lipo -create $inputs -output $XC_UNI_PROD_DIR /$LIB_NAME /lib/${lib} .a
57- xcrun lipo -info $XC_UNI_PROD_DIR /$LIB_NAME /lib/${lib} .a
56+ if [[ $inputs ]]; then
57+ xcrun lipo -create $inputs -output $XC_UNI_PROD_DIR /$LIB_NAME /lib/${lib} .a
58+ xcrun lipo -info $XC_UNI_PROD_DIR /$LIB_NAME /lib/${lib} .a
59+ fi
5860
59- xcrun lipo -create $inputs_sim -output $XC_UNI_SIM_PROD_DIR /$LIB_NAME /lib/${lib} .a
60- xcrun lipo -info $XC_UNI_SIM_PROD_DIR /$LIB_NAME /lib/${lib} .a
61+ if [[ $inputs_sim ]]; then
62+ xcrun lipo -create $inputs_sim -output $XC_UNI_SIM_PROD_DIR /$LIB_NAME /lib/${lib} .a
63+ xcrun lipo -info $XC_UNI_SIM_PROD_DIR /$LIB_NAME /lib/${lib} .a
64+ fi
6165}
6266
6367do_lipo_all () {
@@ -102,7 +106,8 @@ do_lipo_all() {
102106 done
103107
104108 echo ' ----------------------'
105-
109+ echo ' [*] make xcframework'
110+
106111 do_make_xcframework
107112}
108113
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function init_plat_env() {
7070 ALL_ARCHS=" arm64 arm64_simulator"
7171 fi
7272
73- if [[ -z $" XC_ALL_ARCHS" ]]; then
73+ if [[ -z " $ XC_ALL_ARCHS" ]]; then
7474 export XC_ALL_ARCHS=$ALL_ARCHS
7575 else
7676 for arch in $XC_ALL_ARCHS
You can’t perform that action at this time.
0 commit comments