forked from willowtreeapps/Hyperion-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-umbrella-framework.sh
51 lines (41 loc) · 1.22 KB
/
build-umbrella-framework.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
rm -rf tmpsim
rm -rf tmpos
mkdir output/iphoneos
mkdir output/simulator
SCHEME=$1
xcodebuild \
-workspace "HyperionFramework.xcworkspace" \
-scheme $SCHEME \
-configuration "$Debug" \
only_active_arch=no \
defines_module=yes \
-sdk "iphoneos" \
-derivedDataPath "tmpos" \
OTHER_CFLAGS="-fembed-bitcode" \
ENABLE_BITCODE=YES \
clean build
find tmpos -iname "${SCHEME}.framework" -exec mv {} output/iphoneos/ \;
xcodebuild \
-workspace "HyperionFramework.xcworkspace" \
-scheme $SCHEME \
-configuration "$Debug" \
only_active_arch=no \
defines_module=yes \
-sdk "iphonesimulator" \
-derivedDataPath "tmpsim" \
OTHER_CFLAGS="-fembed-bitcode" \
ENABLE_BITCODE=YES \
clean build
find tmpsim -iname "${SCHEME}.framework" -exec mv {} output/simulator/ \;
cp -a output/iphoneos/${SCHEME}.framework output/${SCHEME}.framework
cp -a output/iphoneos/${SCHEME}.framework/${SCHEME} output/${SCHEME}iOS
cp -a output/simulator/${SCHEME}.framework/${SCHEME} output/${SCHEME}Simulator
rm output/${SCHEME}.framework/${SCHEME}
lipo -create output/${SCHEME}Simulator output/${SCHEME}iOS -output output/${SCHEME}.framework/${SCHEME}
#
rm output/${SCHEME}iOS
rm output/${SCHEME}Simulator
rm -rf output/iphoneos
rm -rf output/simulator
rm -rf tmpsim
rm -rf tmpos