Build Script Export Failed Requires a Provisioning Profile

When attempting to run a build script that is currently working for several other projects, the export fails and the IDEDistribution.verbose.log (see below) suggestion is to add a profile to the Export Options property list but as can be seen in the ExportOptions.plist text (see below), there is a profile for each of the three builds.

XCode 16.0 MacOS 14.7

IDEDistribution.verbose.log below

2024-10-28 12:20:30 +0000 [MT] Step failed: <IDEDistributionSigningAssetsStep: 0x60000146e840>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionUnderlyingErrors=( "Error Domain=IDEProvisioningErrorDomain Code=9 ""QuickDelegateTestApp.app" requires a provisioning profile." UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription="QuickDelegateTestApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}" )}

ExportOptions.plist below

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>compileBitcode</key> <true/> <key>method</key> <string>enterprise</string> <key>provisioningProfiles</key> <dict> <key>gov.ornl.quickdelegatetestapp.prod.intune</key> <string>ITSD_Mobile_Apps_FY2025</string> <key>gov.ornl.quickdelegatetestapp.qa.intune</key> <string>ITSD_Mobile_Apps_FY2025</string> <key>gov.ornl.quickdelegatetestapp.dev.intune</key> <string>ITSD_Mobile_Apps_FY2025</string> </dict> <key>signingCertificate</key> <string>Apple Distribution</string> <key>signingStyle</key> <string>manual</string> <key>stripSwiftSymbols</key> <true/> <key>teamID</key> <string>NotTheRealID</string> <key>thinning</key> <string>&lt;none&gt;</string> </dict> </plist>

This is an update. The QuickDelegateTestApp project file got corrupted so I created a new project named DelegateDemo and I am running into the same problem, Below is a portion of the IDEDistribution.verbose.log which reports "Rejected distribution method <IDEDistributionMethodExportArchive: 0x600003f2fe00> because it doesn't support distributing archive" . The ExportOptions.plist method is set to enterprise.

2024-11-05 18:56:11 +0000 [MT] Rejected distribution method <IDEDistributionMethodExportArchive: 0x600003f2fe00> because it doesn't support distributing archive 2024-11-05 18:56:11 +0000 [MT] Available distribution methods: {( <IDEDistributionMethodiOSAppStoreDistribution: 0x600003f636d0>, <IDEDistributionMethodiOSAdHoc: 0x600003f2fdf0>, <IDEDistributionMethodiOSEnterprise: 0x600003f2f9d0>, <IDEDistributionMethodDevelopmentSigned: 0x600003f63740>, <IDEDistributionMethodiOSAppStoreValidation: 0x600003f2fdd0> )}

Build Script Export Failed Requires a Provisioning Profile
 
 
Q