Our app was working fine on iOS9 with appStoreReceiptURL returning a valid receipt location for both sandbox and release versions of our app. We use it to find out the original purchase date of our app.
iOS 10 has broken this and we are no longer receiving a valid url for the receipt on our production app. It still works ok on sandbox. The url returned on a release build is:-
file:///private/var/mobile/Containers/Data/Application/5AF6C66F-1D92-51A9-88A5-C7A432982135/StoreKit/sandboxReceipt
and File does not exist at receipt path file:///private/var/mobile/Containers/Data/Application/5AF6C66F-1D92-51A9-88A5-C7A432982135/StoreKit/sandboxReceipt on a release build. Why is it looking for a sandbox receipt?
Is this a bug in iOS10 or is appStoreReceiptURL no longer supported?