[xctool] reduce build-tests overhead by invoking xcodebuild only once