1xcbuildBuildPhase() {
2 export DSTROOT=$out
3
4 runHook preBuild
5
6 echo "running xcodebuild"
7
8 xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates $xcbuildFlags build
9
10 runHook postBuild
11}
12
13xcbuildInstallPhase () {
14 runHook preInstall
15
16 # not implemented
17 # xcodebuild install
18
19 runHook postInstall
20}
21
22buildPhase=xcbuildBuildPhase
23if [ -z "${installPhase-}" ]; then
24 installPhase=xcbuildInstallPhase
25fi
26
27# if [ -d "*.xcodeproj" ]; then
28# buildPhase=xcbuildPhase
29# fi