Refactor: Move macos_job-xcodebuild_test.sh’s main code in this project: xcodebuild_test.sh (aimed at being run by Jenkins)