iOS Build Fails with "Failed to load profile"

Our iOS build is failing. The error log is as follows:

FAILED with ERROR: 2022-07-27 20:36:28.829 xcodebuild[90153:16290935] DVTProvisioningProfileManager: Failed to load profile “/Users/ec2-user/Library/MobileDevice/Provisioning Profiles/undefined.mobileprovision” (Error Domain=DVTProvisioningProfileProviderErrorDomain Code=1 “Failed to load profile.” UserInfo={NSLocalizedDescription=Failed to load profile., NSLocalizedRecoverySuggestion=Profile is missing the required UUID property.})

I have tried re-uploading the provisioning profile and have also checked and confirmed that the contents of the file includes a UUID but it still fails.

App ID: 427522
Runtime Verison: 4.5.7

Full error log:
logs.txt (6.8 KB)

Hello, I had the same issue.
I put this here for info.

Kindly address this matter

@Craig_Van_Heerden @Syahirah_Shawalil

A number of people are having the exact same issue as you guys.

My suggestion would be to up-vote the bug report that’s currently open:

My guess is that there is an issue picking up the mobileprovision file as its referenced ‘undefined’ instead of the UUID, however I’m not affiliated with SAP, so could be mistaken.

Failed to load profile “/Users/ec2-user/Library/MobileDevice/Provisioning Profiles/undefined.mobileprovision” (Error Domain=DVTProvisioningProfileProviderErrorDomain Code=1 “Failed to load profile.”