Skip to content

Commit 3e4cf43

Browse files
committed
fix lipo: no input files specified
1 parent e48c88d commit 3e4cf43

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/opus.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

apple/do-compile/any.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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

6367
do_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

apple/init-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)