Barcode Detection Enterprise API

I am attempting to use the Barcode Detection enterprise API. I have the necessary entitlements and license file. I'm following the sample code online, and whenever I attempt to run the barcode detection using arKitSession.run I get the following error message:

ar_barcode_detection_provider_t <0x300d82130>: Failed to run provider with transient error code: 1

It obviously isn't running the barcode detection, even though it's running in an immersive space in mixed mode. Any idea what might be going on?

@MCO_IPA Can you confirm you have a valid enterprise license file, that is a member of your run target, in your project? An invalid license file will cause barcode detection to fail silently.

@Vision Pro Engineer The enterprise file is the one we received two weeks ago after we requested the spatial barcode entitlement and others. It is a member of the run target.

We have identified the issue. In our case it was a malformated entitlements file.

We opened in a editor and made sure it looks like this:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.developer.arkit.barcode-detection.allow</key>
	<true/>
</dict>
</plist>


However, I get the failure from the OP starter:

ar_barcode_detection_provider_t <0x300d82130>: Failed to run provider with transient error code: 1

Though Barcode Scanning itself works (confiremd with QR)

Barcode Detection Enterprise API
 
 
Q