Xcode build from command line (or CI)
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
Written by Arnaud Coomans
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Terminal
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#