On Demand Resources Not Working in Release Build for Real Device

I have implemented On Demand Resources (ODR) in my iOS app using Swift. The ODR feature works correctly when running the app directly from Xcode 15.3. However, when I archive the app and install the release build on a real device, the ODR feature fails to function as expected.

I followed up this doc. https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html#//apple_ref/doc/uid/TP40015083-CH2-SW1

I have read that adding specific entitlements for ODR might be necessary, but I'm unsure how to properly configure this.

On Demand Resources Not Working in Release Build for Real Device
 
 
Q