Skip to content

Commit 074dd10

Browse files
committed
Fix simulator version can't build problem
1 parent 36c2944 commit 074dd10

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build_ios.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function build_lame()
2323

2424
./configure \
2525
CFLAGS="-arch ${PLATFORM} -pipe -std=c99 ${BITCODE} -isysroot ${SDK_ROOT} -miphoneos-version-min=${MIN_VERSION}" \
26-
--host="arm-apple-darwin9" \
26+
--host="${HOST}-apple-darwin" \
2727
--enable-static \
2828
--disable-decoder \
2929
--disable-frontend \
@@ -36,12 +36,18 @@ function build_lame()
3636
}
3737

3838
# bulid simulator version
39+
HOST="i686"
3940
SDK="iPhoneSimulator"
40-
PLATFORM="i686"
4141
BITCODE="-fembed-bitcode-maker"
42+
43+
PLATFORM="i386"
44+
build_lame
45+
46+
PLATFORM="x86_64"
4247
build_lame
4348

4449
# build device version
50+
HOST="arm"
4551
SDK="iPhoneOS"
4652
BITCODE="-fembed-bitcode"
4753

0 commit comments

Comments
 (0)