Post

Replies

Boosts

Views

Activity

Reply to Using App Intents in Live Activity to Pause a Timer
The solution is found. To use buttons in LA or Dynamic Island, it shouldn’t be AppIntent, it should be LiveActivityIntent. struct PauseIntent: LiveActivityIntent { // followed by the rest of the code } either load the user defaults data that is linked with App Group or use SwiftData/CoreData, inject model container, and save the updated state there. Then update the live activity, the LA or Dynamic Island will show the updated ContentState. When returning to the app, reload the data from the data store and rebuild the necessary view models.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’25
Reply to Live Activity fails to start with "unsupportedTarget" error on iOS 18 beta
Hi, the live activity function should look something like: func startLiveActivity() { let attributes = TimerAttributes(/*…*/) let contentState = TimerAttributes.ContentState(/*…*/) Task { @MainActor in do { let activity = try Activity<TimerAttributes>.request( attributes: attributes, content: ActivityContent(state: contentState, staleDate: staleDate), pushType: nil ) self.activity = activity } catch { print("Failed to start Live Activity: \(error)") } } } My TimerAttributes - this is your attributes for Live Activity, defined as: struct TimerAttributes: ActivityAttributes { public struct ContentState: Codable, Hashable { /* content state variables */ } /* other variables here */ } so when ever you call your start, you have to call your Live Activity start function. I place it in a Live Activity Manager.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25
Reply to Unable to download iOS 26.1 Simulator Runtime - Build 23B80 not available
I have the same issue on both my Macs, unable to download Build 23B86. Looks the build number has been bumped up. Update: For now the only way is to download from terminal using Xcode command line tools xcodebuild -downloadPlatform iOS -exportPath ~/Downloads Then install it using terminal, the guide is at: https://developer.apple.com/documentation/xcode/downloading-and-installing-additional-xcode-components#Download-Xcode-components-from-the-command-line
Nov ’25
Reply to Guideline 3.1.2 - Business - Payments - Subscriptions
For 3.1.2 Issue Description, you need to include a Terms of Use for apps with Auto Renewable Subscriptions. Either provide your own or you can use the standard Apple Terms of Use EULA. Make sure to put the http link in your description in App Store Connect. As for Resources, make sure your Store Sheet has the mentioned required fields. Also provide a Link in your App binary to the privacy policy and terms of use.
Nov ’25
Reply to In-App Purchases rejected + Reviewer cannot complete purchase
Create a Sandbox account in the Users & Access of App Store Connect. Select Sandbox, then create a Test Account. Use another email, enter the details accordingly. Then open the email, verify it. On your main device, Settings -> Your Name at the top, Media & Purchases -> Sign out. Go back to Settings, at the bottom Developer. Then scroll down to Sandbox Apple Account, sign in to the Sandbox test account. You can manage the In App Purchases settings there, like how long is one month. Back to your app that you are testing in TestFlight, test your purchase flow in there. Verify that it works, your subscription/IAP content can be displayed.
Dec ’25
Reply to how to handle verification step for in-app purchase?
Looks like it is going to the pending case. But then you didn't anything else besides showing the message. You need to have a listener task to listen for Transaction.updates. for await result in Transaction.updates { // Verify the result, update your customer product status // finish the transaction } Also a task that checks Transaction.unfinished, there might be unfinished transactions.
Topic: App & System Services SubTopic: StoreKit Tags:
2w
Reply to HELP WITH SUBSCRIPTIONS
If you are using SubscriptionStoreView with groupID overload, make sure the groupID entered is matching with the one in App Store Connect, not the one from your Xcode StoreKit configuration file. In Xcode testing, you need a StoreKit config file, and make sure to select Edit Scheme -> Options tab and select StoreKit Configuration to the correct configuration file. But this does not affect your App Store version. You might need to handle unfinished transactions. Take a look at sample code from WWDC25 on StoreKit 2.
Topic: App & System Services SubTopic: StoreKit Tags:
2w