-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathlipo
More file actions
executable file
·24 lines (16 loc) · 778 Bytes
/
lipo
File metadata and controls
executable file
·24 lines (16 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
lipo=/usr/bin/lipo
xcodebuild=/usr/bin/xcodebuild
xcodebuild_armv6=/Applications/Xcode4.4/Xcode.app/Contents/Developer/usr/bin/xcodebuild
project_lib_iphoneos=./build/Release-iphoneos/libtcclick.a
project_lib_iphoneos_armv6=./build/Release-iphoneos-armv6/libtcclick.a
project_lib_iphonesimulator=./build/Release-iphonesimulator/libtcclick.a
target_lib=./release/libtcclick.a
rm -rf ./build/*
$xcodebuild_armv6 -configuration=Release -arch armv6
mv ./build/Release-iphoneos ./build/Release-iphoneos-armv6
$xcodebuild -configuration=Release
$xcodebuild -configuration=Release -sdk iphonesimulator
$lipo -create "$project_lib_iphoneos_armv6" "$project_lib_iphoneos" "$project_lib_iphonesimulator" -output "$target_lib"
file "$target_lib"
cp ./build/*.h ./release