1#!/bin/sh
2set -e -x
3
4SDK="-sdk macosx"
5
6export -n SDKROOT
7export -n ARCHS CURRENT_ARCH RC_ARCHS RC_CFLAGS
8export -n RC_TARGET_CONFIG RC_TARGET_UPDATE EMBEDDED_PROFILE_NAME
9# Remove all platform variables from the environment
10export -n `env | grep -E "^PLATFORM_" | cut -d= -f1` \
11	
12# Build the native_tic target using the current SDK for the build host
13xcodebuild \
14	"$@" \
15	$SDK \
16	SYMROOT="$SYMROOT" \
17	DSTROOT="$BUILT_PRODUCTS_DIR" \
18	install
19