Hi,
I created a ticket in the Feedback Assistant for this issue.
Here is the number: FB9434758
Hope it will help.
Post
Replies
Boosts
Views
Activity
Hi,
I run in the same problem. I just updated to macOS Big Sur beta 9 and Xcode 12.2 beta 2 but it is still the same.
Running my macOS app from Xcode with a StoreKit Configuration file, I can make purchases in the Xcode environment but the receipt file is never created in the app bundle.
My app is normally also validating the receipt at launch, but calling exit(173) when the receipt is missing will ask for App Store credentials in the Sandbox environment, not in the Xcode environment.
Is there a way to force a receipt creation/update by Xcode? Should it work without doing anything particular?
Thanks.
I think I found the origin of the problem.
I looked in the Console to see if there were any error log emitted by my app or the App Store and I found this:
appstoreagent Entering -[OctaneService saveConfigurationData:forBundleID:completion:] for com.company.App by DTServiceHub
error appstoreagent Ignoring method call from com.company.App because the app (DTServiceHub) is not valid for Octane
error DTServiceHub [DTStoreKitService] Failed to save configuration file for com.company.App: Error Domain=ASDErrorDomain Code=950 "The requested action is invalid for this application" UserInfo={NSDebugDescription=The requested action is invalid for this application}
It appears that Octane is the code name of the component handling StoreKit testing in Xcode :)
The message seems to indicate that the app associated with the bundle ID does not support StoreKit testing. Since my app is already existing on the App Store and I have a release version installed in the Applications folder, I thought that Octane may be looking for the app to test by its bundle ID and not by its path.
So I tried to delete the release version of the app from the Applications folder and it did the trick!
May be a warning could be added to StoreKit testing documentation about this.
Also I'm a bit afraid of what will happen when there will be archived versions of the app in the DerivedData folder, could it also conflict with the app being tested?