I am working on a Mac application that uses StoreKit to purchase applications. At startup, it checks for the presence of appStoreReceiptURL and exits with code 173 if it does not exist, as described in this technical note from Apple:
https://developer.apple.com/library/ios/technotes/tn2259/_index.html
I exported the application using Export as Mac Application, as I have done many times to distribute it to our beta testers. Typically, exit code 173 caused OS X to display the Login to Download from the App Store dialog box; it worked just recently, at the end of last week. However, with the application that I exported today using Xcode 6.1, it does not. I used to export with Xcode 5.1.
Does anyone else see this behavior? Is there something I have to do differently so that testers see an invitation to enter the app store?
EDIT: In the build settings for the goal that I am creating, I selected the Mac Developer Code Signing ID and the auto configuration profile. The archive process log shows that it used the expected Mac Developer signing ID. Then, in the Organizer window, I select Export as Mac Application to export it to disk, and then launch the application by double-clicking the icon in the Finder window. This is the log that I see in the console after I double-clicked (the first line is the log message that the application displays immediately before it leaves code 173):
2014-11-21 3:58:43.146 PM MyApp[4144]: to get sandbox receipt, the app must be launched from outside xcode 2014-11-21 3:58:43.148 PM com.apple.xpc.launchd[1]: (com.mycompany.MyApp.337424[4144]) Service exited with abnormal code: 173 2014-11-21 3:58:43.151 PM storeassetd[398]: AssetServiceDelegate: Accepting new connection <NSXPCConnection: 0x7f8d61f2f990> connection from pid 378 with interface <AssetServiceInterface: 0x7f8d606f6cf0> (PID 378) 2014-11-21 3:58:43.151 PM storeassetd[398]: addOperation <FetchReceiptOperation: 0x7f8d61f560a0>{name = '(null)'}
I must add that I'm testing the exported Mac application on Yosemite.
EDIT: I also used Receigen to generate the check verification code and see the same results when I use the code that it generates.
source share