if [[ "$sdk" =~ "iphonesimulator" && "$target" =~ "Test" ]] ; then
settings="$settings TEST_AFTER_BUILD=YES"
fi
xcodebuild
-target $target
-configuration $config
-sdk $sdk
-jobs `sysctl hw.ncpu | awk '{print 2*$2}'`
-verbose
build
$settings