Avoid calling xcodebuild twice