refactor xcodebuild invocation