Post

Replies

Boosts

Views

Activity

Unable to test first In-App Purchase for non-consumable - receive empty array.
Hello, I am really struggling to test my first In-App Purchase for a non-consumable product. I have setup the following: App Store Connect: Paid agreement, Bank account, tax forms and compliance all submitted and active Privacy policy added Pricing and availability - all setup In-App Purchases screen - status is "Ready to Submit" Code refers to the correct BundleID: com.mycompany.product - it is exactly the same in App Store Connect and within my code. XCode: I have setup a StoreKit configuration file and it has correctly sync'd with App Store Connect and pulls through the correct data. The code compiles with no errors or warnings. I trying to initially test in the simulator before I - use a Sandbox account in a spare device. Outcome from all of the above, when I run the app, all I receive is an empty array!! What could I be missing or overlooking? Any help you could offer would be gratefully received. Thanks.
2
0
92
Nov ’25
Xcode 16 NavigationStack using environment variable
Hello, My app worked perfectly using Xcode 15.4. After updating to Xcode 16, my NavigationStack started to present the same screen twice using the following code: @EnvironmentObject private var pathSports: NavigationRouteManager var body: some View { NavigationStack(path: $pathSports.path) { .... } .environmentObject(pathSports) } NavigationRouteManager: import Foundation import SwiftUI class NavigationRouteManager: ObservableObject { @Published var path = NavigationPath() func jumpToRootView() { path = NavigationPath() } } I have had to change it to the following code for just a single screen to be displayed. @State private var pathSports: NavigationPath = NavigationPath() var body: some View { NavigationStack(path: $pathSports) { .... } } Have others experienced this same problem, or is it just me? Many thanks.
Topic: UI Frameworks SubTopic: SwiftUI
2
0
664
Oct ’24