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.
This commit is contained in:
Edward Chen 2024-09-06 18:00:34 -07:00 committed by GitHub
parent 28b550f091
commit f3725b9f06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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