Description:
In iOS 17, there is a bug where the Product.products() method from StoreKit returns an empty array on the first launch of the app after installation. However, subsequent launches of the app do not have this issue, and the product array is populated correctly. This problem can be reproduced by deleting and reinstalling the app. It should be noted that this bug is specific to iOS 17, as iOS 16 and iOS 15 do not exhibit the same behavior.
Reproduction Steps:
Install the app on an iOS 17 device.
Launch the app for the first time.
Notice that the product array is empty.
Close the app.
Reopen the app.
Verify that the product array is no longer empty.
import SwiftUI
import StoreKit
struct ContentView: View {
var body: some View {
VStack {
Text("Products are empty on initial app launch in iOS 17")
}.task {
let products = try? await Product.products(for: ["premium"])
print(products)
}
.padding()
}
}
Post
Replies
Boosts
Views
Activity
Subject: Bug Report: Issue with SKStoreReviewController.requestReview on iOS 17 beta 1 - Review Prompt Not Displaying
Dear Apple Developer Support,
I hope this email finds you well. I am writing to inform you about a bug that I have encountered while testing my app on the latest iOS 17 beta 1.
Specifically, I have noticed that the SKStoreReviewController.requestReview() method does not display the review prompt on this beta release. Despite invoking the method, the expected review window does not appear for users to provide feedback or rate the app. This issue seems to be isolated to iOS 17 beta 1, as previous iOS versions did not exhibit this behavior.
I understand that beta versions are prone to bugs and issues, and I am reporting this matter to assist in the improvement of the platform before the official release. If there are any additional steps or information required to help investigate and resolve this issue, please let me know, and I will be more than happy to provide them. Resolving this bug would greatly benefit developers who rely on the SKStoreReviewController functionality within their apps.
Thank you for your attention to this matter, and I appreciate your ongoing dedication to enhancing the iOS platform for app development.
Kind regards, Alexey
How in interactive widgets in ios 17 to prevent the opening of the application by clicking on the widget? Sometimes the user may miss the button and opening the application is inappropriate in this case
Hi, guys!
I created a empty Xcode project with catalyst support and added one dependency YandexMobileMetrica via Swift Package Manager.
YandexMobileMetrica not support Catalyst architecture, so I need exclude this framework for macOS.
I opened section "Frameworks, Libraries" and I switched value from "iOS + macOS" to "iOS".
Then I wrapped the code:
#if !targetEnvironment(macCatalyst)
import YandexMobileMetrica
#endif
But I'm getting an error:
language
While building for Mac Catalyst, no library for this platform was found in '/Users/mezhevikin/Library/Developer/Xcode/DerivedData/catalyst-spm-test-gapaedifaylhvwatazbwfppyplvj/SourcePackages/artifacts/YandexMobileMetrica/YandexMobileMetricaCrashes.xcframework'.
https://github.com/mezhevikin/catalyst-spm-test - example of problem
How to exclude SPM dependency for Catalyst?