Post

Replies

Boosts

Views

Activity

Reply to How to detect refunded IAPs from receipts?
Take a look at func paymentQueue(_ queue: SKPaymentQueue, didRevokeEntitlementsForProductIdentifiers productIdentifiers: [String]) The docs say it has to do with family sharing, but I just tried it and got this callback when I opened StoreKitTest > Manage Transactions and refunded an IAP. I do receipt validation on the device using this ASN1Decoder, which has kindly been made available on GitHub. https://github.com/filom/ASN1Decoder I loop through all the purchases in the receipt to determine the logic. Refunded items have their cancellationDate field set when a refund has occurred.
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’25
Reply to UIKit Autocomplete Broken in Xcode 15.0.1 Playgrounds
Unfortunately this solution did not work. I typed this into an empty playground and I got no compiler errors at all. The playground just sits and says "Ready to continue" endlessly. import UIKit blahblahblah1234 Hello Goodbye However if I put a space between any 2 characters, I get a compiler warning: import UIKit //Consecutive statements on a line must be separated by ';' blah blah This is the only compiler error I've been able to generate. I have restarted my system several times. Playgrounds for me seems to be completely broken.
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’23
Reply to Xcode 14.3 - Failed to render and update auto layout status
Same issue. All IBDesignables are completely broken unless you build for iOS16. "/Users/moh/Developer/Temp Dev/IB_Broken/IB_Broken/Base.lproj/Main.storyboard Failed to render and update auto layout status for ViewController (BYZ-38-t0r): dlopen(IB_Broken.app, 0x0001): tried: '/IB_Broken' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRootIB_Broken.app' (no such file), 'IB_Broken.app' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))"
Apr ’23
Reply to Image from Swift Package Displays in Storyboard But Not in Simulator or Device
I am experiencing the same thing with a PNG file in an asset catalog (Xcode 13.2.1). Colors work fine. The only thing that fixed it for me was to add the asset file to the main app's Copy Bundle Resources build phase. I'm also having @IBDesignables fail to build in Interface Builder with error Designables failed: The build product does not exist in the file system.
Topic: Programming Languages SubTopic: Swift Tags:
May ’22