Post

Replies

Boosts

Views

Activity

Reply to SKTestSession configurations broken?
@Frameworks Engineer This seems to be broken in iOS 27.0 (Beta 2). Refer: https://developer.apple.com/forums/thread/836842 Suggestion: It would be great if Apple could have test cases to ensure it passes for every release so that this doesn't have to be caught by developers.
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
4w
Reply to Pass data to an @Observable model
@ChrisDE Questions Should CarDetailViewModel be created in CarDetailView? Or should CarDetailViewModel be created in ContentView and passed to CarDetailView? Code ContentView struct ContentView: View { @State private var selectedCarID: UUID? var body: some View { NavigationSplitView { CarListView(selectedCarID: $selectedCarID) } detail: { if let selectedCarID { CarDetailView(carID: selectedCarID) } } } } CarListViewModel @Observable class CarListViewModel { let cars = [ Car(id: UUID(), name: "aaa"), Car(id: UUID(), name: "bbb") ] } CarListView import SwiftUI struct CarListView: View { @Binding var selectedCarID: UUID? @State var model = CarListViewModel() var body: some View { List(model.cars, selection: $selectedCarID) { car in VStack(alignment: .leading) { Text(car.name) Text("\(car.id)") } } } } CarDetailViewModel @Observable class CarDetailViewModel { let carID: UUID init(carID: UUID) { self.carID = carID } } CarDetailView import SwiftUI struct CarDetailView: View { @State private var model: CarDetailViewModel init(carID: UUID) { let model = CarDetailViewModel(carID: carID) _model = State(wrappedValue: model) } var body: some View { Text("\(model.carID)") } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
4w
Reply to Pass data to an @Observable model
@ChrisDE Consider the following model @Observable class Model { let id: Int init(id: Int) { self.id = id } } Should the model be created in the parent view (as @State property in parent view) and passed to the detail view? Or should I create model in the detail view (as @State property in the detail view)? But this id needs to come from the parent view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
4w
Reply to How to manage TestFlight subscriptions on macOS?
If you are using TestFlight, then Sandbox would be used. To clear purchase history in sandbox please follow instructions in https://developer.apple.com/documentation/storekit/testing-in-app-purchases-with-sandbox#Clear-the-purchase-history-for-a-Sandbox-Apple-Account For me personally clearing purchase history didn't work https://developer.apple.com/forums/thread/829459 Please let me know if it works / doesn't work for you, thanks!
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’26
Reply to SKTestSession configurations broken?
Please have a look at the Feedback: FB23566876
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
Replies
Boosts
Views
Activity
4w
Reply to SKTestSession.buyProduct(identifier: options:) throws error
Please have a look at the Feedback: FB23566876
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
4w
Reply to SKTestSession.buyProduct(identifier: options:) throws error
This looks like a bug Refer: https://developer.apple.com/forums/thread/830493
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
4w
Reply to SKTestSession configurations broken?
@Frameworks Engineer This seems to be broken in iOS 27.0 (Beta 2). Refer: https://developer.apple.com/forums/thread/836842 Suggestion: It would be great if Apple could have test cases to ensure it passes for every release so that this doesn't have to be caught by developers.
Topic: StoreKit SubTopic:
StoreKit, In-App Purchase, and App Store Server API Q&A
Replies
Boosts
Views
Activity
4w
Reply to SKTestSession.buyProduct(identifier: options:) throws error
This is also broken in Xcode 27 Beta 2 (iOS 27.0 Beta 2)
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
4w
Reply to Pass data to an @Observable model
@ChrisDE Questions Should CarDetailViewModel be created in CarDetailView? Or should CarDetailViewModel be created in ContentView and passed to CarDetailView? Code ContentView struct ContentView: View { @State private var selectedCarID: UUID? var body: some View { NavigationSplitView { CarListView(selectedCarID: $selectedCarID) } detail: { if let selectedCarID { CarDetailView(carID: selectedCarID) } } } } CarListViewModel @Observable class CarListViewModel { let cars = [ Car(id: UUID(), name: "aaa"), Car(id: UUID(), name: "bbb") ] } CarListView import SwiftUI struct CarListView: View { @Binding var selectedCarID: UUID? @State var model = CarListViewModel() var body: some View { List(model.cars, selection: $selectedCarID) { car in VStack(alignment: .leading) { Text(car.name) Text("\(car.id)") } } } } CarDetailViewModel @Observable class CarDetailViewModel { let carID: UUID init(carID: UUID) { self.carID = carID } } CarDetailView import SwiftUI struct CarDetailView: View { @State private var model: CarDetailViewModel init(carID: UUID) { let model = CarDetailViewModel(carID: carID) _model = State(wrappedValue: model) } var body: some View { Text("\(model.carID)") } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
4w
Reply to Pass data to an @Observable model
@ChrisDE Consider the following model @Observable class Model { let id: Int init(id: Int) { self.id = id } } Should the model be created in the parent view (as @State property in parent view) and passed to the detail view? Or should I create model in the detail view (as @State property in the detail view)? But this id needs to come from the parent view.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
4w
Reply to In App Purchase Sandbox Testing - Clear Purchase History Not Working
@Macho Man Randy Savage I have the same problem, and I have no idea how to resolve clear purchase history. I have a filed a feedback, no response on it. Really wish Apple fixes this or tells us what we are missing, because it very frustrating. Refer: https://developer.apple.com/forums/thread/829459
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Auto-renewable subscription says “Item already owned” when same Apple ID uses different app accounts
Could you check the following: Transaction.currentEntitlements to get latest status https://developer.apple.com/documentation/storekit/transaction/currententitlements Transaction.updates is a way for you to observe transactions. https://developer.apple.com/documentation/storekit/transaction/updates
Replies
Boosts
Views
Activity
Jul ’26
Reply to StoreKit returns no in-app subscriptions on TestFlight despite correct App Store Connect configuration
@Ciborgu I understand you have checked that the bundle IDs match. Not sure if the following helps: I had a similar problem, for me personally AppStore Connect App's SKU didn't match with that of Xcode project app target's bundle ID.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to How to manage TestFlight subscriptions on macOS?
If you are using TestFlight, then Sandbox would be used. To clear purchase history in sandbox please follow instructions in https://developer.apple.com/documentation/storekit/testing-in-app-purchases-with-sandbox#Clear-the-purchase-history-for-a-Sandbox-Apple-Account For me personally clearing purchase history didn't work https://developer.apple.com/forums/thread/829459 Please let me know if it works / doesn't work for you, thanks!
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to Xcode 27: Bugs / Feedbacks
@DTS Engineer FB23494579 (StoreKit bug with iOS 27.0 simulator on Xcode 27.0)
Replies
Boosts
Views
Activity
Jun ’26
Reply to Opt in notification is unintuitive
Hi @DTS Engineer Quinn, thanks a lot I have filed the feedback. Feedback: FB23349413 Please pass it on to the relevant team.
Replies
Boosts
Views
Activity
Jun ’26
Reply to Xcode 27 - "Clear Recent" options is missing from run destinations
@Claude31 Thanks a lot for clarifying. Yes seems to maintain only the last 5. May I am just greedy, it would still have been nice to have Clear Recents but it is not a deal breaker.
Replies
Boosts
Views
Activity
Jun ’26
Reply to Xcode 27 - "Clear Recent" options is missing from run destinations
I have closed this feedback as requested by the team. However I wonder how this can be achieved in Xcode 27? This is important as with time it might be cluttered with unused destinations. I am unable to add comments to the same feedback.
Replies
Boosts
Views
Activity
Jun ’26