From f3725b9f06d9d6b7b14d1f357ae55422bec7374f Mon Sep 17 00:00:00 2001 From: Edward Chen <18449977+edgchen1@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:00:34 -0700 Subject: [PATCH] Use output variable from InstallAppleProvisioningProfile task to set provisioning profile UUID. (#22018) This is more flexible than hardcoding the provisioning profile name or UUID. The name shouldn't usually change but it is not guaranteed to remain constant. --- .../templates/stages/mac-ios-packaging-build-stage.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml index 27f9ac895024c..d43f277739d99 100644 --- a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml @@ -104,8 +104,7 @@ stages: xcodeDeveloperDir: '/Applications/Xcode_${{ variables.xcodeVersion }}.app/Contents/Developer' signingOption: 'manual' signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)' - provisioningProfileName: 'temporary *' # temporary name, change it back to the original below later - #provisioningProfileName: 'iOS Team Provisioning Profile' + provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)' args: '-derivedDataPath $(Build.BinariesDirectory)/app_center_test/apple_package_test/DerivedData' workingDirectory: '$(Build.BinariesDirectory)/app_center_test/apple_package_test/' useXcpretty: false # xcpretty can hide useful error output so we will disable it