diff --git a/build.sh b/build.sh index e456ec06e7de5e1d34a1d036fe5e8936b589e891..b08b9e12b63def840d77d012880afa112d12708c 100755 --- a/build.sh +++ b/build.sh @@ -19,12 +19,12 @@ MODE="$1" if [ "$MODE" = "framework" ]; then echo "Building and testing Zip." - xctool \ + xcodebuild \ -project Zip.xcodeproj \ -scheme Zip \ -sdk "$SDK" \ -destination "$PLATFORM" \ - build test + test trap - EXIT exit 0 fi @@ -35,12 +35,11 @@ if [ "$MODE" = "examples" ]; then for example in examples/*/; do echo "Building $example." pod install --project-directory=$example - xctool \ + xcodebuild \ -workspace "${example}Sample.xcworkspace" \ -scheme Sample \ -sdk "$SDK" \ - -destination "$PLATFORM" \ - build + -destination "$PLATFORM" done trap - EXIT exit 0