Post marked as Apple Recommended
Hi guys, just updated Xcode to 13.2 via Mac App Store.
I installed the additional components, and my project won't compile anymore : Xcode just tells me "Internal error: missingPackageDescriptionModule - Resolving Package Graph Failed" when attempting to build. None of the Swift packages used within my app seems to build, because "Package resolution errors must be fixed before building".
Already attempted to clean derived data, reset Swift package caches and update package versions to no avail.
Guess I'll try re-installing Xcode but... does anyone else have the same issue ?
Using an M1 Mac and just updated to Monterey 12.1 if that's relevant.
Thank you !
Hi,I noticed something kinda odd when performing receipt validation against Apple servers.This is a part of Apple's response when validating my receipt against the Sandbox server, regarding an auto-renewable IAP, after calling restoreCompletedTransactions() on the SKPaymentQueue (sensitive data edited out) :{ "quantity": "1", "product_id": "com.mycompany.myappid.myproductidentifier", "transaction_id": "100000051***3", "original_transaction_id": "100000043***2", "purchase_date": "2018-08-30 19:24:10 Etc/GMT", "purchase_date_ms": "1535657050000", "purchase_date_pst": "2018-08-30 12:24:10 America/Los_Angeles", "original_purchase_date": "2019-03-28 11:04:28 Etc/GMT", "original_purchase_date_ms": "1553771068000", "original_purchase_date_pst": "2019-03-28 04:04:28 America/Los_Angeles", "expires_date": "2018-08-30 19:29:10 Etc/GMT", "expires_date_ms": "1535657350000", "expires_date_pst": "2018-08-30 12:29:10 America/Los_Angeles", "web_order_line_item_id": "100000004***1", "is_trial_period": "false", "is_in_intro_offer_period": "false" },It was my understanding that, when talking about auto-renewable products, original_purchase_date is the date of the original subscription (should be unique for the first purchase and all the subsequent renewed purchases), and purchase_date is the date of the purchase we're currently checking (could be the same one as original_purchase_date if this is indeed the original transaction, or could be posterior to the original_purchase_date if this is a renew). In this receipt, I notice that the purchase_date is 2018/08/30, while the original_purchase_date is 2019/03/28 ; did I get it all wrong, or is this some kind of glitch in the Sandbox receipt ?Thanks for your help.
Post not yet marked as solved
Hey there,I just noticed that the iOS 12.2 SDK added a property to SKProduct called "discounts", which is an array of SKProductDiscount.According to the documentation :"The discounts array contains all the offers that you set up in App Store Connect that can be made available to your user for this product."So I got two questions :1) Can we assume that the SKProductDiscount that are contained in this array will only be SKProductDiscounts for which the user is eligible ?Specifically, I found Introductory pricing to be a pain to implement, since we have to perform in-app receipt validation and parse it to determine whether the user is eligible to this offer. Knowing for sure that the user is eligible (or not) at the time we retrieve the SKProduct information would solve everything.2) For testing purposes, I just created a new in-app purchase subscriptions family, containing a single auto-renewable subscription. I set up an introductory price on this product.When querying the App Store with the information about this product, I notice that the "discounts" array is empty, but the "introductoryPrice" property is set and contains the right introducy price I just set up. Does it mean that the user isn't eligible to the introductory price for this subscription ? How can it be, since I just created a new subscriptions family ?Maybe I'm deeply mistaken ; I assumed that this "discounts" array would contain the Introductory Pricing discounts (since, after all, they ARE SKProductDiscounts) as well as the new offers Apple just rolled out for returning subscribers, but maybe "discounts" is only meant to contain the latter.I would really appreciate some help on this matter. Thanks in advance and have a great day !
Hi there,I noticed that it's no longer possible to rename tabs by double-clicking on it in Xcode 9, they now always display a filename but it's impossible to manually set a title.I always found it very handy to be able to label my tabs with explicit names rather than filenames, such as "Data Model", "Project Settings", "Networking"...Is it gone for good in Xcode 9 or did they just change the way to rename them ?I'll be happy to file a radar in the former case 🙂Thanks !