Post

Replies

Boosts

Views

Activity

Reply to BUG: Store kit configuration file processing macOS
Here's the code. It works on iOS/iPadOS but not macOS for the same .storekit file??? import SwiftUI import StoreKit public enum License: String, CaseIterable, Identifiable { public var id: String { self.rawValue } case subscriptionLifetimePremium = "subscription.lifetime" case subscriptionYearlyPremium = "subscription.yearly" case subscriptionMonthlyPremium = "subscription.monthly" } struct ContentView: View { var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Button("StoreKit Test") { Task { @MainActor in // Request our offers from the app store let productIDs = License.allCases.map { $0.rawValue } print("productIDs: \(productIDs)") let productsOffered = try await Product.products(for: Set(productIDs)) print("productsOffered: \(productsOffered)") } } } .padding() } }```
Topic: App & System Services SubTopic: StoreKit Tags:
Sep ’25
Reply to BUG: Store kit configuration file processing macOS
Here's the code. It works on iOS/iPadOS but not macOS for the same .storekit file??? import SwiftUI import StoreKit public enum License: String, CaseIterable, Identifiable { public var id: String { self.rawValue } case subscriptionLifetimePremium = "subscription.lifetime" case subscriptionYearlyPremium = "subscription.yearly" case subscriptionMonthlyPremium = "subscription.monthly" } struct ContentView: View { var body: some View { VStack { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Button("StoreKit Test") { Task { @MainActor in // Request our offers from the app store let productIDs = License.allCases.map { $0.rawValue } print("productIDs: \(productIDs)") let productsOffered = try await Product.products(for: Set(productIDs)) print("productsOffered: \(productsOffered)") } } } .padding() } }```
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to BUG: Store kit configuration file processing macOS
Xcode 16.4
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Storekit configuration broken in Xcode 16.4 the file has been changed
I get the same issue with my store kit configuration file. interestingly It still works on iOS in a simulation, but it does not work on macOS in a simulation. macOS always returns no products when I call the API. Here’s a post where I’m looking for an answer to that issue as well. https://www.reddit.com/r/SwiftUI/s/64xfCfbIPM
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Sep ’25