No bag entry – Cocoa

| | August 5, 2015

I am working on a app written in Swift for Mac. I am using XCode 6.4 on OSX 10.10.4

I recently noticed some weird messages regarding in app purchases.
Initially when I run the app the method request:didFailWithError of SKProductsRequestDelegate is invoked as seen below


func request(request: SKRequest!, didFailWithError error: NSError!) {
    println("Failed: (error.localizedDescription)")
}

This code snippet prints Failed: No bag entry


Further, to solve this I cleaned the project to remove the old binary.
When I try to execute the newly build binary from finder it says

After clicking on Sign In nothing happens.


Questions

  • What exactly is No bag Entry?
  • Why is the alert (present in image) saying that I have already purchased the app, although I am testing in App Store Sandbox?

Note

  • The reason I am executing the App from Finder(outside Xcode) is that Mac applications are required to be executed outside Xcode for first time, so that it can fetch the Receipt from Apple Server

  • Mac App store is kept logged out through the entire process

  • This error popped up with out any reason. I am pretty much sure that something has to be done outside Xcode.

Update

Apple has updated the Technical note TN2206 on July 27 and the change is titled

Cover changes to linking to dynamic libraries outside of an app bundle.

I have dynamically linked openssl library in my app, I guess it has something to do with it.

Leave a Reply