Posts under App & System Services topic

Post

Replies

Boosts

Views

Activity

New features for APNs token authentication now available
Team-scoped keys introduce the ability to restrict your token authentication keys to either development or production environments. Topic-specific keys in addition to environment isolation allow you to associate each key with a specific Bundle ID streamlining key management. For detailed instructions on accessing these features, read our updated documentation on establishing a token-based connection to APNs.
0
0
4.4k
Feb ’25
Meet State Reporting and the new MetricKit
Hello developers! Thank you for your dedication to creating apps with great performance. We’re excited to kick off another year of partnering with you on improving power and performance in your apps. At WWDC26, check out the following new things in the latest platform SDKs and Xcode 27 beta for performance. You can also join us online for a Power and Performance Group Lab on Tuesday, June 9 at 11 AM Pacific. Meet State Reporting and the new MetricKit State reporting: The new StateReporting framework lets your application express its state to downstream tools like Instruments and MetricKit. Make your telemetry and traces much more useful by adopting this simple API. MetricKit: In the 27 releases, the Swift-first MetricManager API replaces the MXMetricManager API. Combined with State Reporting, the new MetricKit provides more granular metrics to isolate performance problems faster. It also provides a more expressive API that is great to use in Swift, with improved Swift concurrency and Codable support. With this year’s releases, the MXMetricManager API is considered legacy. ▶️ To learn more, watch Meet the new MetricKit. Discover new features in Xcode organizer Metric goals: Xcode organizer now provides a goal metric for Battery Usage, Disk Writes, Hang Rate, Hitches, Memory, and Storage metrics, allowing you to prioritize performance engineering across more areas. Generate recommendations: Quickly resolve the highest impact performance issues in your app by using Generate Recommendations for Crash, Energy, Disk Write, Hang and Launch diagnostics. Insights overview: The new insights overview in Xcode organizer summarizes high-impact performance regressions for metrics and diagnostic reports, helping you plan and prioritize performance engineering work. Storage metrics: Storage metrics are now available in Xcode organizer, allowing you to monitor your app's Documents & Data and App Size across releases and catch regressions in cache usage and bundle size. Hitches metric: The new Hitches metric replaces the Scrolling metric in the organizer and now displays hitches for all animations in your app, giving you a comprehensive view of animation performance. ▶️ To learn more about other advancements in Xcode, watch What’s new in Xcode 27. Improve app responsiveness with Instruments Foundation Models: The Foundation Models instrument is redesigned with a tree view that lets you drill into individual requests, inspecting tool call arguments and results, inference prompts and responses, and token statistics. Use it to understand caching behavior, measure latency, and optimize throughput. System Trace: System calls, VM faults, and thread states are now unified into a single plot, with a new blending algorithm that stays readable even at high density. Once you spot something worth investigating, left/right key navigation lets you follow a thread's activity step by step, and the inspector provides quick actions like pinning the thread that made another thread runnable. System Trace now also draws thread priority and QoS over time, making it easier to identify priority inversions and unexpected QoS degradations that affect responsiveness. Swift Concurrency: New Main Actor and Global Concurrent Executor tracks let you visualize running tasks and executor queue depth over time, making it easier to spot task scheduling delays and actor contention. Tasks are now grouped into collections for faster navigation. Swift Tasks, Actors, and Executors instruments can now surface Call Trees, Flame Graphs, and Top Functions scoped to each entity — so you can pinpoint exactly where concurrency overhead lives. Top Functions: Helper functions and runtime internals can be expensive but hard to spot in a standard call tree. The new aggregation mode in Top Functions surfaces any function's total execution time across the entire call stack, making it easy to identify and prioritize hidden hotspots. Run Comparison: Compare call tree data across builds to identify regressions and performance wins. Results can be explored as an outline, flame graph, or top functions — choose whichever view best fits your workflow. ▶️ To learn more about profiling your app with Instruments, watch “Profile, fix, and verify: Improve app responsiveness with Instruments” ▶️ To learn about Foundation Models optimization, watch “Debug and profile agentic app experiences with Instruments”. If you have any questions about using State Reporting or the new MetricKit, create a post on the forums. For help creating a post, see Tips on writing a forum posts.
0
0
1.9k
Jun ’26
Account Holder locked out of Certificates, Identifiers & Profiles – "Unable to find a team with the given Team ID"
My membership was purchased about 2 months ago and worked normally until recently. Certificates, Identifiers & Profiles shows: "Unable to find a team with the given Team ID '…' to which you belong." The enroll page shows: "Your Apple ID is already associated with a membership account holder." App Store Connect works, but membership details aren't shown on the developer account page. Because of this, Sign in with Apple has stopped working in my apps, and App Review is rejecting my submissions. Developer Support hasn't replied to my emails, and phone callback isn't available to me. Could someone from Apple please help or escalate this?
1
0
144
19h
APFS snapshots: documented guarantees for backing-storage identity and exclusion of non-root writers
We are developing MasterVault Clean Room, a governed data system whose validation gate evaluates recorded claims. Each successful validation must refer to one stable, identifiable input view, protected from capture through final consumption. We trust the macOS kernel and approved Apple storage stack, and are evaluating APFS snapshots as a candidate mechanism, but need to establish the backing-storage boundary before relying on them. 1. Binding the open file to its complete backing storage What supported interfaces let a process start with an open file descriptor on an APFS snapshot, identify its complete backing-storage chain, and reject disk-image-backed or other file-backed sources? We need to bind this evidence to the snapshot actually being read. A pathname, mount-point inspection, or independently obtained device identity is insufficient unless the supported semantics establish that binding and address changes during verification. If someone could identify the documented guarantees and limitations of any supported verification sequence, it would be emminently helpful. 2. Excluding non-root writable access through final consumption What supported mechanism or deployment configuration can establish that no non-root actor retains writable access to that backing storage, from capture through final consumption? This must account for: Writable disk-image files or other file-backed storage beneath the snapshot. Pre-existing writable raw/block-device handles. Aliases or alternate access paths to the same backing storage. Changes to the backing-storage configuration during that interval. A read-only snapshot mount and current ownership or device-permission checks alone do not establish this requirement: they do not demonstrate that previously acquired writable access is absent or has been revoked. What we need from the platform Please identify: The supported interfaces and their documented guarantees. Required privileges, supported macOS versions, and storage configurations. Deployment restrictions needed to establish and maintain the boundary. Any part of this requirement that cannot be established through supported public interfaces. We can restrict our supported deployment configurations where necessary, but those restrictions must have a documented basis. The general APFS overview explains features such as cloning, shared space, and sparse files. It does not answer these backing-storage identity and writer-exclusion questions. Likewise, describing snapshots as read-only does not by itself resolve whether their backing storage can be altered through another route. We are seeking platform semantics and supported mechanisms, not Apple certification of MasterVault. This information will determine our admission checks, supported configurations, and qualification tests. If the guarantee is unavailable—or cannot be substantiated for a particular configuration—our validation must remain unresolved, rather than report assurance we cannot support.
0
0
116
19h
Unable to set the Mastercard Sandbox to Apple pay
Hi, I have tried using the URL https://developer.apple.com/apple-pay/sandbox-testing/ to set a sandbox Mastercard for Apple Pay testing. While I managed to get it working with a Visa card, I am having trouble with Mastercard. I either receive a "Cannot add card" error, or the card gets stuck in an "Activating". Has anyone else experienced this, or could you provide a Mastercard that works? I have already tried every Mastercard listed on that page. Thanks
0
0
135
20h
ApplePay Cardholder name
Under what circumstances is the optional cardholderName field populated in the decrypted Apple Pay payment token? Is the field populated for sandbox test cards? Is the name entered during manual card provisioning ever used to populate this field? Is there any merchant-facing API that can force the field to be populated? Is PKPayment.billingContact.name guaranteed to represent the cardholder's name as registered with the card issuer?
0
0
94
21h
StoreKit 2 returns 0 IAP products in TestFlight Sandbox (iOS 27.0.1)
Hello Apple Developer Community, I'm developing an iOS app called Rozděluj – společné výdaje (Bundle ID: cz.rozdeluj.rozdelujapp). StoreKit returns no products for any of our four In-App Purchases in TestFlight. Environment iPhone running iOS 27.0.1 Flutter 3.47.5 in_app_purchase 3.3.1 in_app_purchase_storekit 0.4.13 TestFlight builds 57, 58 and diagnostic build 59 Products cz.rozdeluj.plus.yearly — auto-renewable subscription cz.rozdeluj.unlimited.yearly — auto-renewable subscription cz.rozdeluj.plus.lifetime — non-consumable cz.rozdeluj.unlimited.lifetime — non-consumable Diagnostic results Flutter IAP: isAvailable: true Products returned: 0 Not found IDs: all four Error: storekit_no_response Message: StoreKit: Failed to get response from platform. We also added an independent native Swift StoreKit 2 diagnostic using Product.products(for:) with the same four identifiers. Native result: status: ok count: 0 foundIDs: [] missingIDs: all four The native query completed without throwing an error, but returned an empty product array. Configuration verified Bundle ID matches App Store Connect. In-App Purchase capability is enabled. Paid Apps Agreement, bank account and tax forms are Active. Product IDs match exactly. Pricing and worldwide availability are configured. Czech localization is configured for the inspected product. Automatic App Store distribution signing is enabled in Codemagic. All four IAPs currently have Rejected status following an App Review Guideline 3.1.2 rejection related to missing Terms of Use links. The app has since been updated to address that issue. Questions Could the Rejected status prevent these products from being returned by StoreKit 2 in TestFlight Sandbox? Is there another App Store Connect or Sandbox configuration that could cause Product.products(for:) to return an empty array without throwing an error? What additional diagnostics would help identify the cause? I would appreciate guidance before recreating any products or modifying the purchase implementation. Thank you!
1
0
145
21h
StoreKit 2 returns no products in TestFlight although all agreements, tax and banking are Active
StoreKit 2 Product.products(for:) returns an empty array (no error) for all 6 in-app purchases of my app in TestFlight. Setup: App: Apple ID 6816296214, bundle ID com.nh2s.eggmage-dungeon (first version 1.0, not released yet) IAPs: egg_gems_80, egg_gems_500, egg_gems_1200, egg_gems_2500, egg_starter_pack (consumable), egg_no_ads (non-consumable) Each IAP: status Ready for Review, price set (175 regions, base KRW), English and Korean localizations Business: Paid Apps Agreement Active, Free Apps Agreement Active, bank account Active, W-8BEN, U.S. Certificate of Foreign Status and Korea tax form all Active. The latest Program License Agreement and Paid Applications Schedule are accepted. Explicit App ID with In-App Purchase capability enabled TestFlight build 1.0 (2610141319), canMakePayments = true, storefront USA (143441) The agreements and tax forms became Active yesterday, and the products still don't load after many full app restarts. The app uses Unity IAP 5.4.3, which calls Product.products(for:) with the six IDs above. Is there anything else on the account or app side that could make the sandbox return no products? This looks like the same issue as https://developer.apple.com/forums/thread/849426 (first app, consumables, tax forms activated recently, empty product response). Thank you.
1
0
143
21h
Sandbox returns invalid product identifier for correctly configured auto-renewable subscription
I’m unable to retrieve a newly configured auto-renewable subscription from the Apple Sandbox environment. Product information Bundle ID: com.reynaga.Imoox Product ID: com.reynaga.Imoox.subscription.monthly Subscription status: Prepare for Submission Price: USD 1.99 per month Introductory offer: one-week free trial Result The app requests the product using StoreKit 2: let products = try await Product.products( for: ["com.reynaga.Imoox.subscription.monthly"] ) The request doesn’t throw an error, but the returned products array is empty. I also tested with SKProductsRequest. The Sandbox response is: Valid products: [] Invalid product identifiers: ["com.reynaga.Imoox.subscription.monthly"] Configuration already verified The Bundle ID and Product ID match App Store Connect exactly. The app uses an explicit App ID, not a wildcard. In-App Purchase is enabled for the App ID. The development certificate and provisioning profile are valid. There is no StoreKit Configuration file active in the Run scheme. The Apple Developer Program membership is active. The Paid Applications Agreement is active. Banking and all required tax forms show an Active status. The subscription has a price, localizations, tax category, and availability. Mexico and the United States are included in its availability. The Sandbox Apple Account belongs to the same developer team. The app is development-signed and installed from Xcode 26.2 on a physical iPhone. I signed out and back into the Sandbox account, deleted and reinstalled the app, restarted the device, and cleaned the Xcode build. The issue has persisted well beyond the documented metadata propagation period. Apple Developer Support reviewed the administrative configuration and referred me to the Developer Forums. According to Apple’s documentation, an In-App Purchase doesn’t require prior App Review approval to work in Sandbox. Could an Apple StoreKit or App Store Connect Commerce engineer verify whether the app-to-subscription catalog association is correctly provisioned in Sandbox and refresh or reprocess it if necessary?
1
0
375
22h
Will Apple provide an advance notice before completely shutting down StoreKit 1?
Hi everyone, We have already migrated our app to StoreKit 2 for the latest release. However, we are currently planning our long-term strategy (such as implementing forced app updates) for when StoreKit 1 eventually stops working on legacy app versions. I’ve already checked several discussions here regarding the deprecation of the server-side /verifyReceipt endpoint and its potential impacts. Aside from backend validation, I’m particularly curious about the overall client-side StoreKit 1 framework timeline. While I understand that there is no official sunset date announced yet, it would cause significant issues and delays in handling our legacy apps if it were shut down without warning. I was wondering: Has anyone heard or seen any official guidance on how Apple typically handles full deprecations for core frameworks like this? Can we reasonably expect Apple to issue an official announcement (via Developer News, etc.) with a sufficient grace period before StoreKit 1 is fully retired? I'd love to hear your thoughts or if anyone has received any insights from Apple Developer Support regarding this. Thanks in advance!
1
0
189
22h
Sandbox: CONSUMPTION_REQUEST received but REFUND / REFUND_DECLINED never sent (auto-renewable subscription)
We are testing refunds for an auto-renewable subscription in the Sandbox environment using Transaction.beginRefundRequest(in:), following "Testing refund requests". Our server receives CONSUMPTION_REQUEST, but a REFUND or REFUND_DECLINED notification never follows. What we did (4 transactions, Nov 16, 2026) Purchased a monthly subscription with sandbox renewal rates of 1 hour, 30 minutes and 5 minutes, then turned off auto-renew. Submitted the refund sheet: one request with a standard reason; others with Issue = Other and text GRANT_PRORATED. We also used a second sandbox account. For one transaction, we called Send Consumption Information v2 within 5 minutes of the CONSUMPTION_REQUEST. The body was customerConsented: true, deliveryStatus: DELIVERED, sampleContentProvided: false, refundPreference: GRANT_PRORATED. The API returned 202 Accepted. What we see CONSUMPTION_REQUEST arrives 1–2 minutes after the refund sheet is submitted. Our server returns HTTP 200, and Get Notification History shows the send attempt as SUCCESS. No REFUND or REFUND_DECLINED arrived. Get Refund History v2 is empty, Get Transaction Info shows no revocationDate, and Get Notification History has no refund notification. All other sandbox notifications are delivered within a second: SUBSCRIBED, DID_CHANGE_RENEWAL_STATUS, EXPIRED. In production, REFUND, REFUND_DECLINED and REFUND_REVERSED are delivered normally for the same app. Sandbox transaction IDs 2000001266241009, 2000001266277405, 2000001266288964, 2000001266312137 Feedback: FB25595203 Questions Is there a known issue with Sandbox not deciding refund requests for auto-renewable subscriptions after CONSUMPTION_REQUEST? Is there a supported way to receive a real REFUND notification in Sandbox for end-to-end server testing? Thank you.
1
0
95
22h
CarPlay Voice-Based Conversation – Pre-recorded audio playback
Hello, For an iOS app with the com.apple.developer.carplay-voice-based-conversation entitlement, is it permitted to play pre-recorded audio content through the vehicle's speakers, initiated and controlled by voice commands handled by the app? Specifically, we would like to clarify two possible implementations: Voice-controlled playback: starting, pausing, resuming and stopping pre-recorded audio through voice interaction using CPVoiceControlTemplate, without displaying media playback controls. System media controls: alternatively, using standard iOS APIs such as AVAudioSession, MPNowPlayingInfoCenter and MPRemoteCommandCenter, without requiring the CarPlay Audio entitlement or CPNowPlayingTemplate. Can either of these approaches be implemented within the Voice-Based Conversation category, including playback that continues after the voice interaction has ended? Thank you for your technical guidance.
0
0
63
22h
Supported initial lock state and transition guarantees for a macOS GUI session
We are developing a local approval workflow with a Swift helper in the user's graphical login session. It must withhold approval unless the relevant GUI session is known to be unlocked, and invalidate that approval context on lock or session change. An unlock must not reactivate an old approval context. The read-only prototype can establish on-console/login status and whether a selected main display is awake. It deliberately keeps graphical unlock state unknown and stops. We do not treat an active session, an awake display, screen-sharing access, or successful authentication as proof of graphical unlock. We have read the Apple DTS discussion below. We understand that protected-data availability concerns the keybag and is not guaranteed to track every GUI screen-lock condition. We are not requesting internal APIs or using undocumented lock-state keys. Could you clarify the supported contract for this single requirement? Initial state and session binding: Is there a supported way for a newly started or restarted helper to obtain the current lock state of its specific GUI session, including Fast User Switching and Screen Sharing? If Endpoint Security is relevant, how should that GUI context be matched to its opaque graphical_session_id? We do not assume it equals an audit session ID. Transition coverage and recovery: Which supported notifications cover lock, unlock, and relevant session changes? Is there a documented way to combine an initial state with a subscription without missing a transition, and to detect or recover from dropped events or observer restarts? Delivery guarantees: Are ordering, completeness, and maximum delivery latency documented? Which limits apply during suspension, queue stalls, user switching, or Screen Sharing? If there is no bounded guarantee or supported current-state query, please state that explicitly so we can keep approval disabled rather than infer unlocked state from silence or a previous notification. Please identify applicable macOS versions, required entitlements/permissions, and known exclusions. If this requirement has no supported guarantee, what supported boundary would you recommend? We will not silently substitute protected-data readiness for graphical unlock. Related Apple DTS discussion: https://developer.apple.com/forums/thread/850327
0
0
68
1d
Purchase with promotional offer doesn't work - no transaction update, no webhook
Many of my purchases are encountering an issue when using a promotional offer (with a promo offer signature included). On the client side, everything works properly, and the purchase triggers the .success() callback. However, there are no updates in either the transaction/renewal info or via webhooks. According to the documentation, at least one of these server notifications should be triggered: OFFER_REDEEMED or SUBSCRIBED/RESUBSCRIBED. My server did not receive any signals. Furthermore, when I fetched the subscription status using the App Store Server API, the offer identifier did not appear in either the renewal info or the transaction info.
1
0
166
1d
Does es_sync_client completion exclude a dropped final notification?
This is a public API contract question about macOS 27 EndpointSecurity, not a reported bug, observed loss, or tested reproducer. We need to distinguish draining messages admitted to a client queue from establishing that every relevant generated notification was delivered, including the final one. For this hypothetical case, assume one exact, nonnull client instance remains live in the same epoch throughout the request and callback. Its required subscriptions and unmuted scope have been verified. The sync call is made outside its ES handler; no client deletion, replacement, or cancellation occurs. A null-client immediate callback or a callback caused by destruction would not qualify. Also assume an ordered application writer has committed every record delivered to it; that receipt does not establish kernel completeness. Consider the following schematic sequence: A, the last numbered message, is received → an in-scope NOTIFY B may be generated and dropped → es_sync_client returns success and its callback completes → no subsequent numbered message is received. B represents a notification associated with an operation intended to precede the synchronization cut. Whether that operation's completion establishes B's enqueue position relative to the marker is part of the contract question, not an assumed scheduling guarantee. We understand the documented synchronous-enqueue relationship for completed syscalls. The sequence counters compare received messages, while WWDC20 also describes queue-full drops. We are not asserting that this hypothetical history occurs on any particular release. For an operation with the required pre-marker ordering established, does successful sync completion on the live client exclude a generated-but-dropped B, rather than only confirm processing of messages actually ahead of the marker in the queue? If it does not, is there a supported terminal sequence watermark, drop result, or equivalent interface that can establish loss-free delivery for that finite cut without waiting for another numbered notification? Which public contract specifies the required causal-ordering and client-lifecycle conditions, applicable macOS/SDK versions, and loss semantics—or, if this stronger guarantee is unavailable publicly, can you confirm the supported boundary? This question does not request global quiescence, termination of all descendants, private implementation details, or a workaround that weakens identity checks. References: es_sync_client global_seq_num seq_num WWDC20: Build an Endpoint Security app, 37:27
0
0
88
1d
Sandbox restriction blocks Keychain access during Live Activity rendering: supported design for encrypted updates?
Hi, I'm building a Live Activity prototype using fictitious data. I want incoming updates to stay encrypted until they reach my iPhone, without putting the decryption key in ActivityAttributes, ContentState, or archived views. My goal is timely updates without an alert for each change. I'm using Xcode 27.2 and the iPhoneOS 27.2 SDK. My iPhone was running iOS 27.2.1 when I last checked. I haven't recorded its exact OS build or the OS version and build for every earlier test. My app and WidgetKit extension have the same shared Keychain access group in their signed entitlements. My app creates a 32-byte test key as a generic password with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, with synchronization disabled. The extension only reads the key. A failed lookup never causes the key to be replaced or deleted. When I try to read the key while rendering the Live Activity, the first, metadata-only SecItemCopyMatching call returns errSecNotAvailable (-25291). It fails before I request any secret bytes. I reproduced this after stopping and restarting the activity with my iPhone unlocked. I get the same result with a non-interactive LAContext and with kSecUseAuthenticationUIFail without a supplied context. I used the latter only for comparison, since it is deprecated. My query specifies the class, fixed service and account, and shared access group. It also sets kSecUseDataProtectionKeychain. For the metadata lookup, I use kSecAttrSynchronizableAny, kSecReturnAttributes: true, and kSecMatchLimitAll, without requesting data or item references. I only request the key bytes after finding exactly one item and validating its policy, so that second step is never reached here. For comparison, I added a regular widget to the same signed WidgetKit extension. Its timeline provider successfully validates the metadata using the same read-only query and client, while the Live Activity still returns errSecNotAvailable. I captured these results separately; I haven't established whether they ran simultaneously or in different processes. I have only confirmed metadata access in the regular widget, not access to the key bytes. I also tried decrypting in my foreground app and then passing the fictitious summary to ActivityKit through a local update. That renders correctly on my iPhone. It doesn't test remote delivery or background decryption, or fix the Keychain failure during rendering. I repeated the test with debug messages enabled in Console. The Live Activity in my diagnostic build still shows the same Keychain failure. The capture from the extension now includes the connection error, not just the generic securityd message: activating connection: ... name=com.apple.securityd failed to do a bootstrap look-up: xpc_error=[159: Unknown error: 159] invalidated after a failed init got event: Connection invalid Failed to talk to securityd after 4 attempts. error:[-25291] Error Domain=com.apple.security.xpc Code=3 Connection invalid - Connection init failed at lookup with error 159 - Sandbox restrictionThis excerpt omits connection addresses and account fields. The same -25291 error and sandbox-restriction reason appear five times in this capture. It establishes the reported reason for the connection failure in this test; I haven't established whether this is an intended restriction, an OS issue, or a configuration issue. I also don't infer the actual retry count from the generic message. I'd appreciate guidance on these questions: Given the explicit sandbox-restriction error for com.apple.securityd, is non-interactive Keychain access intentionally unavailable during Live Activity rendering, or should I investigate an OS or configuration issue? Displaying live data with Live Activities documents a separate sandbox and restrictions on network and location access, but I haven't found its Keychain access contract. How should I interpret the different result from my regular widget's timeline provider? For encrypted content-state updates, is there a supported execution point where my app can authenticate and decrypt each update before handing a local render value to ActivityKit? I found the documented app wake-up for push-to-start, but not an equivalent for ordinary updates. If neither approach is supported, how can I deliver timely, alert-free encrypted Live Activity updates while keeping the key solely in Keychain and out of archived state and views? How does ActivityKit protect static ActivityAttributes at rest? Can those attributes be included in backups or replicated to an Apple Watch or Mac, separately from rendered views? Does any of that data pass through Apple servers, and is there a public API to opt out of replication? Would a per-activity session key in locally created static attributes be a supported design, or does Apple advise against storing secrets there? I haven't implemented this alternative. I would keep the long-term pairing key in Keychain, exclude the session key from every APNs payload, and start the activity locally rather than through push-to-start. I'd like to understand the storage and replication guarantees before considering it further. I'm looking for a supported design without weakening Keychain protection, allowing authentication UI during rendering, or suppressing an ordinary notification to bypass its requirements. I can prepare a minimal reproducer with fictitious data and no tokens, real identifiers, or conversation content. Thanks for your help.
4
0
162
1d
Is there a public API for hard physical-memory limits on macOS XPC services?
Can a third-party sandboxed macOS app use a supported public API or configuration to set a kernel-enforced, per-process physical-memory limit on two XPC services bundled with the app (one for PDF export and one for independent verification)? We need the limit in place before either service begins processing input, without root privileges or private APIs. If supported, what is the earliest macOS version (in particular, does it work on macOS 14.6.1)? What entitlements, provisioning, or signing settings are required for the containing app and each service? Is it supported for both Mac App Store and Developer ID distribution? Which metric does it enforce—resident memory, physical footprint, or another measure—and does the kernel reject allocations or terminate the service on excess? A virtual address-space limit such as RLIMIT_AS or memory-pressure monitoring is not the limit we are looking for. If no public mechanism is available for this deployment model, confirmation of that would also be helpful.
0
0
38
1d
In-App Purchases work in TestFlight but not during App Review
Hi everyone, I'm a new iOS developer, and my first app has been rejected twice because of In-App Purchase issues. Setup: Flutter, in_app_purchase 3.3.0, in_app_purchase_storekit 0.4.10 (StoreKit 1) One auto-renewable subscription and one non-consumable lifetime purchase Both products show "Ready for Review" in App Store Connect. Paid Apps Agreement is active. First review: The prices were visible on an iPad, but the subscription purchase failed (Guideline 2.1(b)). Second review: Neither product showed a price on an iPhone (Guideline 2.1(b)). Apple also noted missing subscription information (Guideline 3.1.2(c)). On my iPhone 15, both products load correctly and test purchases work in TestFlight using my regular Apple Account. Product IDs, pricing, availability, and localizations appear correct. My question: What could cause queryProductDetails / SKProductsRequest to return no products during App Review when everything works in TestFlight? Any suggestions would be greatly appreciated. Thanks! :)
2
1
321
1d
AppStore.sync() throws StoreKitError.unknown after password submission in TestFlight
I'm investigating a Restore Purchases failure in my app, PW Paycheck, which uses StoreKit 2. TestFlight purchases of consumable checks and an annual subscription have succeeded, but restoring purchases repeatedly fails. The failing call is: try await AppStore.sync() Apple displays an account password prompt. I enter my password and tap OK, after which the call throws. Our typed error classifier and NSError conversion report: StoreKitError.unknown StoreKit.StoreKitError: 2 This is the StoreKit.StoreKitError domain, not SKErrorDomain. We have not established whether authentication succeeded internally or what causes the failure. Environment: Physical iPhone 16 Pro; installed through TestFlight. App version 1.0 (20), bundle com.ggeller.pwpaycheck. In-app OS report: Version 26.6.2 (Build 23G90). Reported StoreKit price storefront: USA / 143491. Annual subscription: com.ggeller.pwpaycheck.pro.annual. Developed and uploaded using Swift Playgrounds on iPad. I have a Windows laptop and no Mac access. Steps: Open the TestFlight app with an existing unexpired annual test subscription. Open Payment Options and tap Restore Purchases. Enter the password in Apple's prompt and tap OK. AppStore.sync() throws the error above. The app then refreshes entitlements and displays a restore failure message. Observed results: Verified active subscription access is recognized before and after the failed operation. We do not count this as successful restoration. The subscription was canceled but still unexpired during the captured attempt. Build 19 produced the same NSError domain/code on Wi-Fi and cellular. Build 20 captured the typed .unknown classification on Wi-Fi. Our logger captured no additional underlying error. The latest attempt started at 2026-10-14T13:59:09Z and completed at 13:59:25Z, including the post-failure entitlement refresh. We are not treating this as evidence of a timeout. The restore action is user initiated, guarded against duplicate operations, and waits for an earlier entitlement refresh to finish before calling AppStore.sync(). What supported diagnostic or configuration check would help distinguish possible causes of this error, particularly without access to Xcode's device console? Also, how should we isolate a TestFlight-specific restore failure in a focused sample while preserving the relevant app/account context? A separate sample has been prepared, but compilation and reproduction are still pending.
1
0
230
1d
StoreKit returns empty product for approved subscription customer cannot subscribe
Hi, I’m experiencing a StoreKit 2 issue with my iOS app Live Gigs. App: Live Gigs Bundle ID: com.leicomusic.LiveGigs App Apple ID: 6817866296 Subscription Product ID: livegigsmaandelijks Subscription Apple ID: 6817868044 The auto-renewable subscription is Approved in App Store Connect and is available in all countries and regions. Pricing, localization, subscription group, Paid Apps Agreement, banking and tax have all been checked and are active. The actual problem is that the subscription does not appear in the app at all. When a customer opens the subscription screen, there is no product and therefore the Apple purchase sheet cannot be opened. The customer cannot purchase the subscription. The app calls: Product.products(for: ["livegigsmaandelijks"]) StoreKit returns an empty array without throwing an error. I have tested this on a physical iPhone using a signed build. Interestingly, the same product works correctly when using a local Xcode StoreKit Configuration: the €6.99/month product appears and the purchase flow can be started. I have checked the requirements described in TN3186/TN3188, including the Bundle ID, product ID, subscription status, availability, pricing, localization, agreements, banking, tax, IAP capability and signing. Has anyone else experienced an approved subscription suddenly disappearing from the StoreKit catalog like this? Could this be an Apple-side StoreKit/App Store Commerce catalog issue? Any advice from Apple engineers or developers who experienced the same issue would be greatly appreciated.
3
0
102
1d
StoreKit Product.displayPrice returns USD in TestFlight despite Bulgarian storefront (EUR)
Hello Apple Developer Community, We are experiencing a reproducible StoreKit pricing issue in our Flutter iOS app, Tablichko. App details: Bundle ID: bg.tablichko.tablichko In-App Purchase: bg.tablichko.tablichko.fullversion Product type: Non-consumable TestFlight build: 22 Source commit: 587834b App Store Connect pricing: Bulgaria: EUR 6.99 United States: USD 5.99 The issue: On the same physical iPhone, using the same Apple Account and Bulgarian storefront, we observe different prices depending on how the app is installed. A standalone development-signed StoreKit 2 test app correctly returns EUR 6.99, with displayPrice showing "6,99 €" and storefront BGR/EUR. Our full Flutter application, built from the same source commit in release mode and development-signed, also correctly displays EUR 6.99. After reinstalling TestFlight build 22, the exact same Flutter app displays USD 5.99. However, when initiating the purchase from TestFlight, Apple's native purchase confirmation sheet correctly displays EUR 6.99. Our app uses the price returned by StoreKit (Product.displayPrice) without manually converting currencies or applying any hardcoded price. Expected behavior: StoreKit should return EUR 6.99 for the Bulgarian storefront in both development-signed and TestFlight installations. Actual behavior: The TestFlight app displays USD 5.99, while Apple's purchase confirmation sheet displays EUR 6.99. Questions: Why would StoreKit return a USD localized price only in TestFlight while the development-signed version correctly returns EUR? Could this be caused by stale StoreKit product metadata or TestFlight-specific caching? Is there a known issue with localized In-App Purchase pricing in TestFlight? Is there a recommended diagnostic procedure or workaround to ensure StoreKit returns the correct storefront-specific price? Any guidance from Apple engineers or developers who have encountered this issue would be greatly appreciated. Thank you!
1
0
310
1d
New features for APNs token authentication now available
Team-scoped keys introduce the ability to restrict your token authentication keys to either development or production environments. Topic-specific keys in addition to environment isolation allow you to associate each key with a specific Bundle ID streamlining key management. For detailed instructions on accessing these features, read our updated documentation on establishing a token-based connection to APNs.
Replies
0
Boosts
0
Views
4.4k
Activity
Feb ’25
Meet State Reporting and the new MetricKit
Hello developers! Thank you for your dedication to creating apps with great performance. We’re excited to kick off another year of partnering with you on improving power and performance in your apps. At WWDC26, check out the following new things in the latest platform SDKs and Xcode 27 beta for performance. You can also join us online for a Power and Performance Group Lab on Tuesday, June 9 at 11 AM Pacific. Meet State Reporting and the new MetricKit State reporting: The new StateReporting framework lets your application express its state to downstream tools like Instruments and MetricKit. Make your telemetry and traces much more useful by adopting this simple API. MetricKit: In the 27 releases, the Swift-first MetricManager API replaces the MXMetricManager API. Combined with State Reporting, the new MetricKit provides more granular metrics to isolate performance problems faster. It also provides a more expressive API that is great to use in Swift, with improved Swift concurrency and Codable support. With this year’s releases, the MXMetricManager API is considered legacy. ▶️ To learn more, watch Meet the new MetricKit. Discover new features in Xcode organizer Metric goals: Xcode organizer now provides a goal metric for Battery Usage, Disk Writes, Hang Rate, Hitches, Memory, and Storage metrics, allowing you to prioritize performance engineering across more areas. Generate recommendations: Quickly resolve the highest impact performance issues in your app by using Generate Recommendations for Crash, Energy, Disk Write, Hang and Launch diagnostics. Insights overview: The new insights overview in Xcode organizer summarizes high-impact performance regressions for metrics and diagnostic reports, helping you plan and prioritize performance engineering work. Storage metrics: Storage metrics are now available in Xcode organizer, allowing you to monitor your app's Documents & Data and App Size across releases and catch regressions in cache usage and bundle size. Hitches metric: The new Hitches metric replaces the Scrolling metric in the organizer and now displays hitches for all animations in your app, giving you a comprehensive view of animation performance. ▶️ To learn more about other advancements in Xcode, watch What’s new in Xcode 27. Improve app responsiveness with Instruments Foundation Models: The Foundation Models instrument is redesigned with a tree view that lets you drill into individual requests, inspecting tool call arguments and results, inference prompts and responses, and token statistics. Use it to understand caching behavior, measure latency, and optimize throughput. System Trace: System calls, VM faults, and thread states are now unified into a single plot, with a new blending algorithm that stays readable even at high density. Once you spot something worth investigating, left/right key navigation lets you follow a thread's activity step by step, and the inspector provides quick actions like pinning the thread that made another thread runnable. System Trace now also draws thread priority and QoS over time, making it easier to identify priority inversions and unexpected QoS degradations that affect responsiveness. Swift Concurrency: New Main Actor and Global Concurrent Executor tracks let you visualize running tasks and executor queue depth over time, making it easier to spot task scheduling delays and actor contention. Tasks are now grouped into collections for faster navigation. Swift Tasks, Actors, and Executors instruments can now surface Call Trees, Flame Graphs, and Top Functions scoped to each entity — so you can pinpoint exactly where concurrency overhead lives. Top Functions: Helper functions and runtime internals can be expensive but hard to spot in a standard call tree. The new aggregation mode in Top Functions surfaces any function's total execution time across the entire call stack, making it easy to identify and prioritize hidden hotspots. Run Comparison: Compare call tree data across builds to identify regressions and performance wins. Results can be explored as an outline, flame graph, or top functions — choose whichever view best fits your workflow. ▶️ To learn more about profiling your app with Instruments, watch “Profile, fix, and verify: Improve app responsiveness with Instruments” ▶️ To learn about Foundation Models optimization, watch “Debug and profile agentic app experiences with Instruments”. If you have any questions about using State Reporting or the new MetricKit, create a post on the forums. For help creating a post, see Tips on writing a forum posts.
Replies
0
Boosts
0
Views
1.9k
Activity
Jun ’26
Account Holder locked out of Certificates, Identifiers & Profiles – "Unable to find a team with the given Team ID"
My membership was purchased about 2 months ago and worked normally until recently. Certificates, Identifiers & Profiles shows: "Unable to find a team with the given Team ID '…' to which you belong." The enroll page shows: "Your Apple ID is already associated with a membership account holder." App Store Connect works, but membership details aren't shown on the developer account page. Because of this, Sign in with Apple has stopped working in my apps, and App Review is rejecting my submissions. Developer Support hasn't replied to my emails, and phone callback isn't available to me. Could someone from Apple please help or escalate this?
Replies
1
Boosts
0
Views
144
Activity
19h
APFS snapshots: documented guarantees for backing-storage identity and exclusion of non-root writers
We are developing MasterVault Clean Room, a governed data system whose validation gate evaluates recorded claims. Each successful validation must refer to one stable, identifiable input view, protected from capture through final consumption. We trust the macOS kernel and approved Apple storage stack, and are evaluating APFS snapshots as a candidate mechanism, but need to establish the backing-storage boundary before relying on them. 1. Binding the open file to its complete backing storage What supported interfaces let a process start with an open file descriptor on an APFS snapshot, identify its complete backing-storage chain, and reject disk-image-backed or other file-backed sources? We need to bind this evidence to the snapshot actually being read. A pathname, mount-point inspection, or independently obtained device identity is insufficient unless the supported semantics establish that binding and address changes during verification. If someone could identify the documented guarantees and limitations of any supported verification sequence, it would be emminently helpful. 2. Excluding non-root writable access through final consumption What supported mechanism or deployment configuration can establish that no non-root actor retains writable access to that backing storage, from capture through final consumption? This must account for: Writable disk-image files or other file-backed storage beneath the snapshot. Pre-existing writable raw/block-device handles. Aliases or alternate access paths to the same backing storage. Changes to the backing-storage configuration during that interval. A read-only snapshot mount and current ownership or device-permission checks alone do not establish this requirement: they do not demonstrate that previously acquired writable access is absent or has been revoked. What we need from the platform Please identify: The supported interfaces and their documented guarantees. Required privileges, supported macOS versions, and storage configurations. Deployment restrictions needed to establish and maintain the boundary. Any part of this requirement that cannot be established through supported public interfaces. We can restrict our supported deployment configurations where necessary, but those restrictions must have a documented basis. The general APFS overview explains features such as cloning, shared space, and sparse files. It does not answer these backing-storage identity and writer-exclusion questions. Likewise, describing snapshots as read-only does not by itself resolve whether their backing storage can be altered through another route. We are seeking platform semantics and supported mechanisms, not Apple certification of MasterVault. This information will determine our admission checks, supported configurations, and qualification tests. If the guarantee is unavailable—or cannot be substantiated for a particular configuration—our validation must remain unresolved, rather than report assurance we cannot support.
Replies
0
Boosts
0
Views
116
Activity
19h
Unable to set the Mastercard Sandbox to Apple pay
Hi, I have tried using the URL https://developer.apple.com/apple-pay/sandbox-testing/ to set a sandbox Mastercard for Apple Pay testing. While I managed to get it working with a Visa card, I am having trouble with Mastercard. I either receive a "Cannot add card" error, or the card gets stuck in an "Activating". Has anyone else experienced this, or could you provide a Mastercard that works? I have already tried every Mastercard listed on that page. Thanks
Replies
0
Boosts
0
Views
135
Activity
20h
ApplePay Cardholder name
Under what circumstances is the optional cardholderName field populated in the decrypted Apple Pay payment token? Is the field populated for sandbox test cards? Is the name entered during manual card provisioning ever used to populate this field? Is there any merchant-facing API that can force the field to be populated? Is PKPayment.billingContact.name guaranteed to represent the cardholder's name as registered with the card issuer?
Replies
0
Boosts
0
Views
94
Activity
21h
StoreKit 2 returns 0 IAP products in TestFlight Sandbox (iOS 27.0.1)
Hello Apple Developer Community, I'm developing an iOS app called Rozděluj – společné výdaje (Bundle ID: cz.rozdeluj.rozdelujapp). StoreKit returns no products for any of our four In-App Purchases in TestFlight. Environment iPhone running iOS 27.0.1 Flutter 3.47.5 in_app_purchase 3.3.1 in_app_purchase_storekit 0.4.13 TestFlight builds 57, 58 and diagnostic build 59 Products cz.rozdeluj.plus.yearly — auto-renewable subscription cz.rozdeluj.unlimited.yearly — auto-renewable subscription cz.rozdeluj.plus.lifetime — non-consumable cz.rozdeluj.unlimited.lifetime — non-consumable Diagnostic results Flutter IAP: isAvailable: true Products returned: 0 Not found IDs: all four Error: storekit_no_response Message: StoreKit: Failed to get response from platform. We also added an independent native Swift StoreKit 2 diagnostic using Product.products(for:) with the same four identifiers. Native result: status: ok count: 0 foundIDs: [] missingIDs: all four The native query completed without throwing an error, but returned an empty product array. Configuration verified Bundle ID matches App Store Connect. In-App Purchase capability is enabled. Paid Apps Agreement, bank account and tax forms are Active. Product IDs match exactly. Pricing and worldwide availability are configured. Czech localization is configured for the inspected product. Automatic App Store distribution signing is enabled in Codemagic. All four IAPs currently have Rejected status following an App Review Guideline 3.1.2 rejection related to missing Terms of Use links. The app has since been updated to address that issue. Questions Could the Rejected status prevent these products from being returned by StoreKit 2 in TestFlight Sandbox? Is there another App Store Connect or Sandbox configuration that could cause Product.products(for:) to return an empty array without throwing an error? What additional diagnostics would help identify the cause? I would appreciate guidance before recreating any products or modifying the purchase implementation. Thank you!
Replies
1
Boosts
0
Views
145
Activity
21h
StoreKit 2 returns no products in TestFlight although all agreements, tax and banking are Active
StoreKit 2 Product.products(for:) returns an empty array (no error) for all 6 in-app purchases of my app in TestFlight. Setup: App: Apple ID 6816296214, bundle ID com.nh2s.eggmage-dungeon (first version 1.0, not released yet) IAPs: egg_gems_80, egg_gems_500, egg_gems_1200, egg_gems_2500, egg_starter_pack (consumable), egg_no_ads (non-consumable) Each IAP: status Ready for Review, price set (175 regions, base KRW), English and Korean localizations Business: Paid Apps Agreement Active, Free Apps Agreement Active, bank account Active, W-8BEN, U.S. Certificate of Foreign Status and Korea tax form all Active. The latest Program License Agreement and Paid Applications Schedule are accepted. Explicit App ID with In-App Purchase capability enabled TestFlight build 1.0 (2610141319), canMakePayments = true, storefront USA (143441) The agreements and tax forms became Active yesterday, and the products still don't load after many full app restarts. The app uses Unity IAP 5.4.3, which calls Product.products(for:) with the six IDs above. Is there anything else on the account or app side that could make the sandbox return no products? This looks like the same issue as https://developer.apple.com/forums/thread/849426 (first app, consumables, tax forms activated recently, empty product response). Thank you.
Replies
1
Boosts
0
Views
143
Activity
21h
Sandbox returns invalid product identifier for correctly configured auto-renewable subscription
I’m unable to retrieve a newly configured auto-renewable subscription from the Apple Sandbox environment. Product information Bundle ID: com.reynaga.Imoox Product ID: com.reynaga.Imoox.subscription.monthly Subscription status: Prepare for Submission Price: USD 1.99 per month Introductory offer: one-week free trial Result The app requests the product using StoreKit 2: let products = try await Product.products( for: ["com.reynaga.Imoox.subscription.monthly"] ) The request doesn’t throw an error, but the returned products array is empty. I also tested with SKProductsRequest. The Sandbox response is: Valid products: [] Invalid product identifiers: ["com.reynaga.Imoox.subscription.monthly"] Configuration already verified The Bundle ID and Product ID match App Store Connect exactly. The app uses an explicit App ID, not a wildcard. In-App Purchase is enabled for the App ID. The development certificate and provisioning profile are valid. There is no StoreKit Configuration file active in the Run scheme. The Apple Developer Program membership is active. The Paid Applications Agreement is active. Banking and all required tax forms show an Active status. The subscription has a price, localizations, tax category, and availability. Mexico and the United States are included in its availability. The Sandbox Apple Account belongs to the same developer team. The app is development-signed and installed from Xcode 26.2 on a physical iPhone. I signed out and back into the Sandbox account, deleted and reinstalled the app, restarted the device, and cleaned the Xcode build. The issue has persisted well beyond the documented metadata propagation period. Apple Developer Support reviewed the administrative configuration and referred me to the Developer Forums. According to Apple’s documentation, an In-App Purchase doesn’t require prior App Review approval to work in Sandbox. Could an Apple StoreKit or App Store Connect Commerce engineer verify whether the app-to-subscription catalog association is correctly provisioned in Sandbox and refresh or reprocess it if necessary?
Replies
1
Boosts
0
Views
375
Activity
22h
Will Apple provide an advance notice before completely shutting down StoreKit 1?
Hi everyone, We have already migrated our app to StoreKit 2 for the latest release. However, we are currently planning our long-term strategy (such as implementing forced app updates) for when StoreKit 1 eventually stops working on legacy app versions. I’ve already checked several discussions here regarding the deprecation of the server-side /verifyReceipt endpoint and its potential impacts. Aside from backend validation, I’m particularly curious about the overall client-side StoreKit 1 framework timeline. While I understand that there is no official sunset date announced yet, it would cause significant issues and delays in handling our legacy apps if it were shut down without warning. I was wondering: Has anyone heard or seen any official guidance on how Apple typically handles full deprecations for core frameworks like this? Can we reasonably expect Apple to issue an official announcement (via Developer News, etc.) with a sufficient grace period before StoreKit 1 is fully retired? I'd love to hear your thoughts or if anyone has received any insights from Apple Developer Support regarding this. Thanks in advance!
Replies
1
Boosts
0
Views
189
Activity
22h
Sandbox: CONSUMPTION_REQUEST received but REFUND / REFUND_DECLINED never sent (auto-renewable subscription)
We are testing refunds for an auto-renewable subscription in the Sandbox environment using Transaction.beginRefundRequest(in:), following "Testing refund requests". Our server receives CONSUMPTION_REQUEST, but a REFUND or REFUND_DECLINED notification never follows. What we did (4 transactions, Nov 16, 2026) Purchased a monthly subscription with sandbox renewal rates of 1 hour, 30 minutes and 5 minutes, then turned off auto-renew. Submitted the refund sheet: one request with a standard reason; others with Issue = Other and text GRANT_PRORATED. We also used a second sandbox account. For one transaction, we called Send Consumption Information v2 within 5 minutes of the CONSUMPTION_REQUEST. The body was customerConsented: true, deliveryStatus: DELIVERED, sampleContentProvided: false, refundPreference: GRANT_PRORATED. The API returned 202 Accepted. What we see CONSUMPTION_REQUEST arrives 1–2 minutes after the refund sheet is submitted. Our server returns HTTP 200, and Get Notification History shows the send attempt as SUCCESS. No REFUND or REFUND_DECLINED arrived. Get Refund History v2 is empty, Get Transaction Info shows no revocationDate, and Get Notification History has no refund notification. All other sandbox notifications are delivered within a second: SUBSCRIBED, DID_CHANGE_RENEWAL_STATUS, EXPIRED. In production, REFUND, REFUND_DECLINED and REFUND_REVERSED are delivered normally for the same app. Sandbox transaction IDs 2000001266241009, 2000001266277405, 2000001266288964, 2000001266312137 Feedback: FB25595203 Questions Is there a known issue with Sandbox not deciding refund requests for auto-renewable subscriptions after CONSUMPTION_REQUEST? Is there a supported way to receive a real REFUND notification in Sandbox for end-to-end server testing? Thank you.
Replies
1
Boosts
0
Views
95
Activity
22h
CarPlay Voice-Based Conversation – Pre-recorded audio playback
Hello, For an iOS app with the com.apple.developer.carplay-voice-based-conversation entitlement, is it permitted to play pre-recorded audio content through the vehicle's speakers, initiated and controlled by voice commands handled by the app? Specifically, we would like to clarify two possible implementations: Voice-controlled playback: starting, pausing, resuming and stopping pre-recorded audio through voice interaction using CPVoiceControlTemplate, without displaying media playback controls. System media controls: alternatively, using standard iOS APIs such as AVAudioSession, MPNowPlayingInfoCenter and MPRemoteCommandCenter, without requiring the CarPlay Audio entitlement or CPNowPlayingTemplate. Can either of these approaches be implemented within the Voice-Based Conversation category, including playback that continues after the voice interaction has ended? Thank you for your technical guidance.
Replies
0
Boosts
0
Views
63
Activity
22h
Supported initial lock state and transition guarantees for a macOS GUI session
We are developing a local approval workflow with a Swift helper in the user's graphical login session. It must withhold approval unless the relevant GUI session is known to be unlocked, and invalidate that approval context on lock or session change. An unlock must not reactivate an old approval context. The read-only prototype can establish on-console/login status and whether a selected main display is awake. It deliberately keeps graphical unlock state unknown and stops. We do not treat an active session, an awake display, screen-sharing access, or successful authentication as proof of graphical unlock. We have read the Apple DTS discussion below. We understand that protected-data availability concerns the keybag and is not guaranteed to track every GUI screen-lock condition. We are not requesting internal APIs or using undocumented lock-state keys. Could you clarify the supported contract for this single requirement? Initial state and session binding: Is there a supported way for a newly started or restarted helper to obtain the current lock state of its specific GUI session, including Fast User Switching and Screen Sharing? If Endpoint Security is relevant, how should that GUI context be matched to its opaque graphical_session_id? We do not assume it equals an audit session ID. Transition coverage and recovery: Which supported notifications cover lock, unlock, and relevant session changes? Is there a documented way to combine an initial state with a subscription without missing a transition, and to detect or recover from dropped events or observer restarts? Delivery guarantees: Are ordering, completeness, and maximum delivery latency documented? Which limits apply during suspension, queue stalls, user switching, or Screen Sharing? If there is no bounded guarantee or supported current-state query, please state that explicitly so we can keep approval disabled rather than infer unlocked state from silence or a previous notification. Please identify applicable macOS versions, required entitlements/permissions, and known exclusions. If this requirement has no supported guarantee, what supported boundary would you recommend? We will not silently substitute protected-data readiness for graphical unlock. Related Apple DTS discussion: https://developer.apple.com/forums/thread/850327
Replies
0
Boosts
0
Views
68
Activity
1d
Purchase with promotional offer doesn't work - no transaction update, no webhook
Many of my purchases are encountering an issue when using a promotional offer (with a promo offer signature included). On the client side, everything works properly, and the purchase triggers the .success() callback. However, there are no updates in either the transaction/renewal info or via webhooks. According to the documentation, at least one of these server notifications should be triggered: OFFER_REDEEMED or SUBSCRIBED/RESUBSCRIBED. My server did not receive any signals. Furthermore, when I fetched the subscription status using the App Store Server API, the offer identifier did not appear in either the renewal info or the transaction info.
Replies
1
Boosts
0
Views
166
Activity
1d
Does es_sync_client completion exclude a dropped final notification?
This is a public API contract question about macOS 27 EndpointSecurity, not a reported bug, observed loss, or tested reproducer. We need to distinguish draining messages admitted to a client queue from establishing that every relevant generated notification was delivered, including the final one. For this hypothetical case, assume one exact, nonnull client instance remains live in the same epoch throughout the request and callback. Its required subscriptions and unmuted scope have been verified. The sync call is made outside its ES handler; no client deletion, replacement, or cancellation occurs. A null-client immediate callback or a callback caused by destruction would not qualify. Also assume an ordered application writer has committed every record delivered to it; that receipt does not establish kernel completeness. Consider the following schematic sequence: A, the last numbered message, is received → an in-scope NOTIFY B may be generated and dropped → es_sync_client returns success and its callback completes → no subsequent numbered message is received. B represents a notification associated with an operation intended to precede the synchronization cut. Whether that operation's completion establishes B's enqueue position relative to the marker is part of the contract question, not an assumed scheduling guarantee. We understand the documented synchronous-enqueue relationship for completed syscalls. The sequence counters compare received messages, while WWDC20 also describes queue-full drops. We are not asserting that this hypothetical history occurs on any particular release. For an operation with the required pre-marker ordering established, does successful sync completion on the live client exclude a generated-but-dropped B, rather than only confirm processing of messages actually ahead of the marker in the queue? If it does not, is there a supported terminal sequence watermark, drop result, or equivalent interface that can establish loss-free delivery for that finite cut without waiting for another numbered notification? Which public contract specifies the required causal-ordering and client-lifecycle conditions, applicable macOS/SDK versions, and loss semantics—or, if this stronger guarantee is unavailable publicly, can you confirm the supported boundary? This question does not request global quiescence, termination of all descendants, private implementation details, or a workaround that weakens identity checks. References: es_sync_client global_seq_num seq_num WWDC20: Build an Endpoint Security app, 37:27
Replies
0
Boosts
0
Views
88
Activity
1d
Sandbox restriction blocks Keychain access during Live Activity rendering: supported design for encrypted updates?
Hi, I'm building a Live Activity prototype using fictitious data. I want incoming updates to stay encrypted until they reach my iPhone, without putting the decryption key in ActivityAttributes, ContentState, or archived views. My goal is timely updates without an alert for each change. I'm using Xcode 27.2 and the iPhoneOS 27.2 SDK. My iPhone was running iOS 27.2.1 when I last checked. I haven't recorded its exact OS build or the OS version and build for every earlier test. My app and WidgetKit extension have the same shared Keychain access group in their signed entitlements. My app creates a 32-byte test key as a generic password with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, with synchronization disabled. The extension only reads the key. A failed lookup never causes the key to be replaced or deleted. When I try to read the key while rendering the Live Activity, the first, metadata-only SecItemCopyMatching call returns errSecNotAvailable (-25291). It fails before I request any secret bytes. I reproduced this after stopping and restarting the activity with my iPhone unlocked. I get the same result with a non-interactive LAContext and with kSecUseAuthenticationUIFail without a supplied context. I used the latter only for comparison, since it is deprecated. My query specifies the class, fixed service and account, and shared access group. It also sets kSecUseDataProtectionKeychain. For the metadata lookup, I use kSecAttrSynchronizableAny, kSecReturnAttributes: true, and kSecMatchLimitAll, without requesting data or item references. I only request the key bytes after finding exactly one item and validating its policy, so that second step is never reached here. For comparison, I added a regular widget to the same signed WidgetKit extension. Its timeline provider successfully validates the metadata using the same read-only query and client, while the Live Activity still returns errSecNotAvailable. I captured these results separately; I haven't established whether they ran simultaneously or in different processes. I have only confirmed metadata access in the regular widget, not access to the key bytes. I also tried decrypting in my foreground app and then passing the fictitious summary to ActivityKit through a local update. That renders correctly on my iPhone. It doesn't test remote delivery or background decryption, or fix the Keychain failure during rendering. I repeated the test with debug messages enabled in Console. The Live Activity in my diagnostic build still shows the same Keychain failure. The capture from the extension now includes the connection error, not just the generic securityd message: activating connection: ... name=com.apple.securityd failed to do a bootstrap look-up: xpc_error=[159: Unknown error: 159] invalidated after a failed init got event: Connection invalid Failed to talk to securityd after 4 attempts. error:[-25291] Error Domain=com.apple.security.xpc Code=3 Connection invalid - Connection init failed at lookup with error 159 - Sandbox restrictionThis excerpt omits connection addresses and account fields. The same -25291 error and sandbox-restriction reason appear five times in this capture. It establishes the reported reason for the connection failure in this test; I haven't established whether this is an intended restriction, an OS issue, or a configuration issue. I also don't infer the actual retry count from the generic message. I'd appreciate guidance on these questions: Given the explicit sandbox-restriction error for com.apple.securityd, is non-interactive Keychain access intentionally unavailable during Live Activity rendering, or should I investigate an OS or configuration issue? Displaying live data with Live Activities documents a separate sandbox and restrictions on network and location access, but I haven't found its Keychain access contract. How should I interpret the different result from my regular widget's timeline provider? For encrypted content-state updates, is there a supported execution point where my app can authenticate and decrypt each update before handing a local render value to ActivityKit? I found the documented app wake-up for push-to-start, but not an equivalent for ordinary updates. If neither approach is supported, how can I deliver timely, alert-free encrypted Live Activity updates while keeping the key solely in Keychain and out of archived state and views? How does ActivityKit protect static ActivityAttributes at rest? Can those attributes be included in backups or replicated to an Apple Watch or Mac, separately from rendered views? Does any of that data pass through Apple servers, and is there a public API to opt out of replication? Would a per-activity session key in locally created static attributes be a supported design, or does Apple advise against storing secrets there? I haven't implemented this alternative. I would keep the long-term pairing key in Keychain, exclude the session key from every APNs payload, and start the activity locally rather than through push-to-start. I'd like to understand the storage and replication guarantees before considering it further. I'm looking for a supported design without weakening Keychain protection, allowing authentication UI during rendering, or suppressing an ordinary notification to bypass its requirements. I can prepare a minimal reproducer with fictitious data and no tokens, real identifiers, or conversation content. Thanks for your help.
Replies
4
Boosts
0
Views
162
Activity
1d
Is there a public API for hard physical-memory limits on macOS XPC services?
Can a third-party sandboxed macOS app use a supported public API or configuration to set a kernel-enforced, per-process physical-memory limit on two XPC services bundled with the app (one for PDF export and one for independent verification)? We need the limit in place before either service begins processing input, without root privileges or private APIs. If supported, what is the earliest macOS version (in particular, does it work on macOS 14.6.1)? What entitlements, provisioning, or signing settings are required for the containing app and each service? Is it supported for both Mac App Store and Developer ID distribution? Which metric does it enforce—resident memory, physical footprint, or another measure—and does the kernel reject allocations or terminate the service on excess? A virtual address-space limit such as RLIMIT_AS or memory-pressure monitoring is not the limit we are looking for. If no public mechanism is available for this deployment model, confirmation of that would also be helpful.
Replies
0
Boosts
0
Views
38
Activity
1d
In-App Purchases work in TestFlight but not during App Review
Hi everyone, I'm a new iOS developer, and my first app has been rejected twice because of In-App Purchase issues. Setup: Flutter, in_app_purchase 3.3.0, in_app_purchase_storekit 0.4.10 (StoreKit 1) One auto-renewable subscription and one non-consumable lifetime purchase Both products show "Ready for Review" in App Store Connect. Paid Apps Agreement is active. First review: The prices were visible on an iPad, but the subscription purchase failed (Guideline 2.1(b)). Second review: Neither product showed a price on an iPhone (Guideline 2.1(b)). Apple also noted missing subscription information (Guideline 3.1.2(c)). On my iPhone 15, both products load correctly and test purchases work in TestFlight using my regular Apple Account. Product IDs, pricing, availability, and localizations appear correct. My question: What could cause queryProductDetails / SKProductsRequest to return no products during App Review when everything works in TestFlight? Any suggestions would be greatly appreciated. Thanks! :)
Replies
2
Boosts
1
Views
321
Activity
1d
AppStore.sync() throws StoreKitError.unknown after password submission in TestFlight
I'm investigating a Restore Purchases failure in my app, PW Paycheck, which uses StoreKit 2. TestFlight purchases of consumable checks and an annual subscription have succeeded, but restoring purchases repeatedly fails. The failing call is: try await AppStore.sync() Apple displays an account password prompt. I enter my password and tap OK, after which the call throws. Our typed error classifier and NSError conversion report: StoreKitError.unknown StoreKit.StoreKitError: 2 This is the StoreKit.StoreKitError domain, not SKErrorDomain. We have not established whether authentication succeeded internally or what causes the failure. Environment: Physical iPhone 16 Pro; installed through TestFlight. App version 1.0 (20), bundle com.ggeller.pwpaycheck. In-app OS report: Version 26.6.2 (Build 23G90). Reported StoreKit price storefront: USA / 143491. Annual subscription: com.ggeller.pwpaycheck.pro.annual. Developed and uploaded using Swift Playgrounds on iPad. I have a Windows laptop and no Mac access. Steps: Open the TestFlight app with an existing unexpired annual test subscription. Open Payment Options and tap Restore Purchases. Enter the password in Apple's prompt and tap OK. AppStore.sync() throws the error above. The app then refreshes entitlements and displays a restore failure message. Observed results: Verified active subscription access is recognized before and after the failed operation. We do not count this as successful restoration. The subscription was canceled but still unexpired during the captured attempt. Build 19 produced the same NSError domain/code on Wi-Fi and cellular. Build 20 captured the typed .unknown classification on Wi-Fi. Our logger captured no additional underlying error. The latest attempt started at 2026-10-14T13:59:09Z and completed at 13:59:25Z, including the post-failure entitlement refresh. We are not treating this as evidence of a timeout. The restore action is user initiated, guarded against duplicate operations, and waits for an earlier entitlement refresh to finish before calling AppStore.sync(). What supported diagnostic or configuration check would help distinguish possible causes of this error, particularly without access to Xcode's device console? Also, how should we isolate a TestFlight-specific restore failure in a focused sample while preserving the relevant app/account context? A separate sample has been prepared, but compilation and reproduction are still pending.
Replies
1
Boosts
0
Views
230
Activity
1d
StoreKit returns empty product for approved subscription customer cannot subscribe
Hi, I’m experiencing a StoreKit 2 issue with my iOS app Live Gigs. App: Live Gigs Bundle ID: com.leicomusic.LiveGigs App Apple ID: 6817866296 Subscription Product ID: livegigsmaandelijks Subscription Apple ID: 6817868044 The auto-renewable subscription is Approved in App Store Connect and is available in all countries and regions. Pricing, localization, subscription group, Paid Apps Agreement, banking and tax have all been checked and are active. The actual problem is that the subscription does not appear in the app at all. When a customer opens the subscription screen, there is no product and therefore the Apple purchase sheet cannot be opened. The customer cannot purchase the subscription. The app calls: Product.products(for: ["livegigsmaandelijks"]) StoreKit returns an empty array without throwing an error. I have tested this on a physical iPhone using a signed build. Interestingly, the same product works correctly when using a local Xcode StoreKit Configuration: the €6.99/month product appears and the purchase flow can be started. I have checked the requirements described in TN3186/TN3188, including the Bundle ID, product ID, subscription status, availability, pricing, localization, agreements, banking, tax, IAP capability and signing. Has anyone else experienced an approved subscription suddenly disappearing from the StoreKit catalog like this? Could this be an Apple-side StoreKit/App Store Commerce catalog issue? Any advice from Apple engineers or developers who experienced the same issue would be greatly appreciated.
Replies
3
Boosts
0
Views
102
Activity
1d
StoreKit Product.displayPrice returns USD in TestFlight despite Bulgarian storefront (EUR)
Hello Apple Developer Community, We are experiencing a reproducible StoreKit pricing issue in our Flutter iOS app, Tablichko. App details: Bundle ID: bg.tablichko.tablichko In-App Purchase: bg.tablichko.tablichko.fullversion Product type: Non-consumable TestFlight build: 22 Source commit: 587834b App Store Connect pricing: Bulgaria: EUR 6.99 United States: USD 5.99 The issue: On the same physical iPhone, using the same Apple Account and Bulgarian storefront, we observe different prices depending on how the app is installed. A standalone development-signed StoreKit 2 test app correctly returns EUR 6.99, with displayPrice showing "6,99 €" and storefront BGR/EUR. Our full Flutter application, built from the same source commit in release mode and development-signed, also correctly displays EUR 6.99. After reinstalling TestFlight build 22, the exact same Flutter app displays USD 5.99. However, when initiating the purchase from TestFlight, Apple's native purchase confirmation sheet correctly displays EUR 6.99. Our app uses the price returned by StoreKit (Product.displayPrice) without manually converting currencies or applying any hardcoded price. Expected behavior: StoreKit should return EUR 6.99 for the Bulgarian storefront in both development-signed and TestFlight installations. Actual behavior: The TestFlight app displays USD 5.99, while Apple's purchase confirmation sheet displays EUR 6.99. Questions: Why would StoreKit return a USD localized price only in TestFlight while the development-signed version correctly returns EUR? Could this be caused by stale StoreKit product metadata or TestFlight-specific caching? Is there a known issue with localized In-App Purchase pricing in TestFlight? Is there a recommended diagnostic procedure or workaround to ensure StoreKit returns the correct storefront-specific price? Any guidance from Apple engineers or developers who have encountered this issue would be greatly appreciated. Thank you!
Replies
1
Boosts
0
Views
310
Activity
1d