Prioritize user privacy and data security in your app. Discuss best practices for data handling, user consent, and security measures to protect user information.

All subtopics
Posts under Privacy & Security topic

Post

Replies

Boosts

Views

Activity

Privacy & Security Resources
General: Forums topic: Privacy & Security Privacy Resources Security Resources Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
0
0
1.5k
Jul ’25
Sign in with Apple account deletion: does revoking one refresh token invalidate the others?
We’re designing account deletion for a native iOS app that uses Sign in with Apple. We’ve reviewed TN3194 and the documentation for /auth/revoke. Suppose two separate sign-ins by the same Apple user under the same client_id issue distinct refresh tokens A and B, and both tokens are valid immediately before revocation. If we revoke A successfully using /auth/revoke, does B remain valid? Does the answer depend on whether the supplied token is the older or newer one? For account deletion, what is the recommended procedure for this client_id? Is revoking one valid refresh token sufficient to remove the user’s Sign in with Apple authorization for the app, or should the server revoke each stored refresh token individually? Could you clarify what behavior an implementation can rely on? Thank you.
0
0
21
6h
Supported macOS API for loopback-only confinement with synchronous bind/connect denial?
I am asking which supported public macOS interface can meet the requirements below. This is a design/supportability question; I do not have a focused Xcode reproducer. Recorded host: macOS 26.6.2 (build 25G83), Apple silicon (arm64). Workload: an unchanged, third-party Flutter/Dart command-line toolchain and its process tree. This includes exec descendants and native code called directly through FFI, including SQLite loaded through FFI. Question: Is there a currently supported public interface and exact policy, or a documented supported composition of public interfaces, that can kernel-enforce requested-address bind/connect restrictions on that tree with all of the following properties? Numeric 127.0.0.1 TCP ephemeral bind/listen/connect/echo must work. The actual bind(AF_INET, 0.0.0.0:0) call must itself fail immediately, at the call, with EPERM or EACCES. The actual connect(AF_INET, 192.0.2.1:9) call must itself fail immediately, at the call, with EPERM or EACCES. The restriction must apply across exec children, native/direct calls (not only libc or framework wrappers), inherited file descriptors and SQLite FFI. The tree's necessary filesystem read, write and executable/library-load set must be specifiable and bounded. Protected originals and SDK, Git and cache identities must stay unmodified, credentials and sealed evidence must stay protected, and no broad new permissions are granted. Signing, entitlements, privilege, installation/activation, user or admin approval, inheritance/FD scope and host applicability must be specified authoritatively. These do not meet the requirements: flow or packet drop, timeout, connection refused, no route, a missing interface, user-space interception or wrappers, unsupported or private interfaces, reduced SIP, or an operation that never ran. Specific points we would like confirmed: a. App Sandbox. The documented com.apple.security.network.client and com.apple.security.network.server entitlements are Boolean and have no per-address selector. Is there any supported way to allow listening on 127.0.0.1 while making a wildcard 0.0.0.0 bind fail with EPERM/EACCES? Can an existing externally built toolchain and all of its descendants be confined this way? Apple's helper guidance re-signs embedded tools with only com.apple.security.app-sandbox and com.apple.security.inherit. b. Network Extension. Can a content filter (NEFilterDataProvider), packet filter provider, transparent proxy or another provider type make the original bind() or connect() syscall itself return EPERM/EACCES, rather than dropping the flow later? If a new-flow drop verdict makes connect() fail, is the resulting errno documented and guaranteed? c. Endpoint Security. We understand the AUTH_UIPC_BIND/AUTH_UIPC_CONNECT events cover only UNIX-domain sockets. Is there any supported Endpoint Security event that authorizes IPv4 TCP bind/connect? d. Custom sandbox profiles. Is a custom sandbox profile (SBPL) applied through sandbox-exec or sandbox_init a supported interface for third-party products on this macOS version? e. Delegated paths (an additional question, separate from 1–6): Does any candidate interface cover network activity performed for the tree by system daemons or local relays? If a qualifying interface exists, please name the exact public interface and policy/configuration, the supported macOS versions, and the requirements under point 6. Please also confirm that the two denied calls are guaranteed to return EPERM/EACCES at the call. If none exists, please say so, and say which numbered property has no supported public interface. We will record that as "no supported public interface", not as a statement that the behaviour is technically impossible. Any closest supported alternative you mention will be recorded as information only. It will not be treated as meeting properties 1–6. No logs, source code, credentials or internal evidence are attached.
0
0
55
1d
Detecting or restricting ScreenCaptureKit capture of a specific app's windows
Hi, I'm exploring macOS options to protect the windows of selected apps from being screen-captured or recorded by other apps (enterprise Macs, managed via MDM). Is there a supported API or Endpoint Security event that tells when a process starts a screen capture or recording (ScreenCaptureKit), and whether it captures a display or a single window? Is there a supported way, for example via MDM, to prevent other apps from capturing a specific app's windows? NSWindow.sharingType = .none no longer seems to exclude a window from ScreenCaptureKit on macOS 15 and later. Is this expected, and is there an alternative? Tested on macOS 26.3.1 (Apple silicon). Thanks.
0
0
30
1d
No lifecycle notification when entering App Switcher while app remains inactive after Face ID
We use LAContext.evaluatePolicy(.deviceOwnerAuthentication) for a local app lock. On an iPhone 16 Pro running iOS 26.6.2, after authentication succeeds, UIApplication.shared.applicationState can remain .inactive for approximately 2–8 seconds although the app UI is visible. If the user enters the App Switcher during this interval, the app receives no additional willResignActive or didEnterBackground notification. Returning to the app produces only didBecomeActive. This means the app cannot distinguish between: remaining in the app while the Face ID UI finishes dismissing; and entering the App Switcher and returning during the same inactive interval. Reproduction: Run a minimal UIKit app on a physical Face ID device. Call evaluatePolicy(.deviceOwnerAuthentication). Immediately after successful authentication, enter the App Switcher before didBecomeActive. Wait three seconds and return. Is there a supported public API or lifecycle pattern that lets an app lock immediately in this situation without keeping its content covered until didBecomeActive?
2
0
84
1d
Reading Mouse Events with CGEvent tap from a background app in macOS 27.3
WIth macOS 27.3 (beta 2) things have changed quite a bit for security, see Updates to Device Control and Data Access, and Full Disk Access in macOS I have an app which uses what (used to be called) the Privacy & Security / Accessibility permissions in order to receive mouse events in the background to read them and occasionally modify them. The method used: The app checks AXIsProcessTrustedWithOptions to see if it has permission. If it doesn't have permission, it uses the kAXTrustedCheckOptionPrompt option which would open up the privacy & Security / Accessibility pane. Because that process has been a little flakey in macOS, my app has a backup option, where it runs 'open "x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_Accessibility"' and then walks the user through the steps with onscreen instructions. When permission is granted, the app creates a CGEvent tap SessionEvent tap using the HeadInsertEvent option to receive mouse and touch mouse events. See CGEvent.tapCreate In macOS 27.3 beta 2, always returns false using kAXTrustedCheckOptionPrompt fails to do anything open "x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_Accessibility fails to do anything. CGEvent tap fails A few questions: will my third party app be allowed to use CGEventTaps to read mouse and touchpad events? Or has this been cut off completely and only available to first party apps? If it is allowed, how? Has the permission for this moved to a different System Preference pane? is a CGEvent tap the way to do it? I totally understand that security is important, and apps should not have wide-ranging permissions. I'd love to find a way to keep my app running with the minimal permissions needed.
6
0
742
1d
Node aborts during dyld startup under sandbox-exec — macOS 27.2.1 (26B131)
I am seeking supported diagnostic guidance for an early process-startup failure on Apple Silicon running macOS 27.2.1, build 26B131. An owner-operated Python controller launches Node.js 24.19.0 through /usr/bin/sandbox-exec with a restrictive default-deny profile. The profile denies networking, restricts filesystem writes to a disposable workspace, and permits reads and executable mapping beneath /System and /usr/lib, as well as the selected runtime directories. One attempt terminated immediately with SIGABRT, before any JavaScript application/probe output, dependency installation or application compilation. The controller recorded exit -6 after approximately 0.041 seconds; stdout and stderr were empty. The matching crash report identifies node and EXC_CRASH/SIGABRT, termination namespace 0x23, code 2. The faulting stack includes ignition_halt, boot_boot, ignite, dyld4::CacheFinder::CacheFinder and dyld4::ProcessConfig::DyldCache::DyldCache. No explanatory abort message is present in the retained report. Examination of the retained unified-log interval did not identify a sandbox denial attributable to Node or an explicit dyld failure reason. This does not establish that no denial occurred. We have not established whether this is a profile omission, a loader/OS compatibility issue, or another interaction. No permissions have been expanded and the failed attempt has not been retried. Could you advise: What supported diagnostic method can identify the operation or loader condition responsible for this abort? Is there documented sandbox configuration required for dyld startup on this macOS build, and is sandbox-exec supported for this constrained command-line use case? Is there a recognised compatibility issue or supported workaround that preserves restricted filesystem access and denied networking? What is the smallest additional diagnostic to collect, and which specific fields would be useful? We seek publicly supportable diagnostic guidance, not disclosure of private implementation details. A sanitised profile or targeted diagnostic excerpt can be provided following separate review; no raw crash reports, private paths, credentials, application source or unrelated logs are attached.
1
0
310
2d
macOS 27.3: which keyboard-event APIs trigger "System & App Protection Override" for an assistive text expander?
I make a sandboxed Mac App Store text expander, used by many people as an assistive tool: people with motor and neurological conditions type a short abbreviation and get the full text. On a fresh install under macOS 27.3 beta 2, turning on abbreviation expansion brings up the "System & App Protection Override" dialog. Before the user can allow anything, it lists Read, Change, Delete, and Export All Your Data; View Hidden and Recently Deleted Photos; View History and Browse As You; Control Your Mac, Apps, and Settings; and Read and Monitor Everything. My app uses none of that, and for users who rely on it as assistive technology, the dialog reads as a warning to avoid the app. What I actually use: An active CGEventTap at kCGSessionEventTap (keyDown/keyUp/mouse-up) that keeps a short in-memory buffer of the current word. It briefly holds back and replays keystrokes during an expansion, and consumes the trigger key. A listen-only tap at kCGAnnotatedSessionEventTap, reading only kCGEventTargetUnixProcessID. CGEventPost to send backspaces, ⌘V (for rich text and images) and Tab/Return, only to the frontmost app and only in response to the user's typing. CGWindowListCopyWindowInfo, reading only PID, layer and bounds. No AX reads or writes (I only call AXIsProcessTrusted), no Apple Events, no screen capture. Questions: Which of these puts an app under System & App Protection Override rather than the new Accessibility setting? Is it the active tap, CGEventPost, or both? Will an app granted the upcoming assistive-technology entitlement still be able to post keyboard events to the frontmost app? I tried AXUIElementSetAttributeValue(kAXSelectedTextAttribute) instead, but it handles only plain text and fails in browsers, Electron apps and web editors. Is there an entitlement identifier or request route yet? Filed as FB25698042
0
0
141
2d
Technical feasibility — Restricting PIV RSA signing to a specific signed macOS application
Hello, I'm developing BenStrukt, a macOS application that uses RSA-2048 signatures to authorize individual operations through a local IPC protocol. We are evaluating the YubiKey 5C NFC using an RSA private key generated on-device in PIV slot 9C, configured with PIN Policy Always and Touch Policy Always. Our critical security requirement is not only that the RSA private key must be non-exportable, but also that only our specifically signed macOS application can initiate authorized signing operations. According to Apple's documentation, external token items are exposed through kSecAttrAccessGroupToken, which is accessible by default without a specific keychain access-group entitlement. Could you clarify whether there is a documented, supported mechanism to enforce application-specific authorization for PIV private-key operations on macOS? In particular, can a second application running under the same macOS user obtain a reference to the key and request a signature when the correct PIN and physical touch are supplied? Would CryptoTokenKit, a custom token extension, code-signing requirements, or another supported mechanism prevent this, including access through alternative smart-card interfaces such as PC/SC? If application-specific isolation is not supported, could you explicitly confirm this limitation? We need to establish these guarantees before purchasing hardware or modifying our existing signing architecture. Thank you for your technical guidance. Oliver BenFounder — BenStrukt
0
0
42
2d
Will Endpoint Security clients get an entitlement to keep the previous Full Disk Access UX in macOS 27.3?
Apple recent news "Updates to Device Control and Data Access, and Full Disk Access in macOS" describes a redesigned Full Disk Access (FDA) UX in macOS 27.3. I understand and support the goal of giving users more transparency and granular control over their data. However, I'd like to raise a concern about a specific class of apps: Endpoint Security clients (for example antivirus). The EndpointSecurity.framework requires Full Disk Access to create an es_client_t and to monitor system events. For these products, FDA is not an optional convenience - it is the only supported and recommended way to deliver their core functionality. The new onboarding flow actively discourages users from granting full access (red highlighting, warnings that granting FDA "Bypass System Protections"). For a security solution, this creates a contradictory and confusing situation: the user is told that installing security software will lower the protection level of their system. This makes first-time setup of such products significantly harder. The news states that developers of apps that use FDA for disk backup (and assistive technologies using the new Accessibility settings) can request entitlements to deliver the same onboarding experience as before macOS 27.3. That is great news for backup products. My questions are: Is a similar entitlement planned for Endpoint Security clients? The news explicitly mentions "disk backup" and assistive technologies, but not endpoint security, which arguably has an even stronger requirement for FDA since es_client_t creation depends on it. Would it make sense for Apple to let every app that holds the com.apple.developer.endpoint-security.client entitlement keep the previous FDA UX for new installations, similar to what is proposed for disk backup apps? If an entitlement is planned, when will the details be published, and how can developers of existing security products request it? I've also create the Feedback - FB25694046. Thank you.
0
1
56
2d
Can an XPC receiver verify that App Sandbox is active for the sender?
We are designing a macOS launcher that waits for a one-use reply before starting a child process. Two instances of the same signed launcher may be running. Before replying, the receiving service needs to verify that App Sandbox is active in the specific process instance that sent the request. We can check the sender’s signed App Sandbox entitlement. Is there a supported public API or documented procedure that also lets the receiver verify the sender’s active runtime sandbox? If so, what evidence ties that observation to the sender of this XPC message, including if the sender exits and its PID is reused? Please identify the documentation and applicable macOS versions. If the supported check establishes only the signed entitlement, confirmation of that limit would also help.
0
0
121
3d
Two-way sync with Apple Calendar from an Expo/React Native app: iCloud CalDAV on the server, or EventKit on the device?
I'm building a family calendar app (Expo SDK 56 + Supabase). I already have two-way Google Calendar sync running server-side: OAuth, a calendar the app creates in the user's account, push notifications plus an incremental sync token, and an outbox for writes going out. Now I need two-way sync with Apple Calendar. A read-only .ics subscription doesn't work for me, because users need to edit on either side. I see two options: A: iCloud CalDAV from my server The user creates an app-specific password at appleid.apple.com and pastes it into the app. The server creates its own calendar (MKCALENDAR) and syncs with sync-collection, using the same outbox/worker I already have for Google. ✅ Works on every platform, including web, and keeps syncing when the app is closed. ❌ The setup is clunky for non-technical parents. ❌ An app-specific password unlocks the whole iCloud account (mail, contacts, every calendar), so I'd be storing a much broader credential than I need. ❌ iCloud doesn't push changes, so I'd have to poll. ❓ Apple doesn't officially support this. B: EventKit on the device (expo-calendar) The phone reads and writes its local calendars (iCloud, Exchange, and on Android whatever is in CalendarContract). ✅ No credentials, the OS permission prompt handles access, and it covers every account on the phone. ❌ Syncs only while the app runs (background fetch on iOS is unreliable). ❌ One user with two devices means two writers. ❌ Needs a native build, and does nothing on web. Questions for anyone who has shipped one of these: Is anyone running iCloud CalDAV with app-specific passwords in production? How do users take the setup, and has Apple ever pushed back or broken it? If you went with EventKit, how did you handle background sync and conflicts across several devices? Is there a third option I'm missing, or a hybrid (for example EventKit on iOS, server sync everywhere else)?
0
0
182
4d
Authentication-UI refusal for a file-based certificate query on macOS
The guidance in https://developer.apple.com/forums/thread/739774 explains the context search list, the kSecMatchSearchList override and continued use of deprecated file-based APIs where that keychain model is required. For a SecItemCopyMatching query using kSecClassCertificate and an explicitly supplied file-based test keychain, what is the supported way to refuse authentication UI rather than allow a prompt? I am considering macOS 26.6.1 with the macOS 27.0 SDK; please clarify applicability to that combination and any relevant application-context restrictions. In particular, which refusal mechanism applies to the file-based path given the deprecation of earlier authentication-UI options? If access would require keychain unlock or authentication UI, is an error guaranteed, or can the query omit items and return success? A public documentation reference and any version limitations would be helpful. This is a contract question for a prospective test; I have not run it or reproduced a problem.
0
0
102
4d
Supported way to distinguish no extended ACL from ACL retrieval failure for an open file descriptor on macOS
Hello Apple Developer Forums, I am looking for a documented, supported user-space method on macOS to verify that an already-open file or directory has no extended ACL, while distinguishing that state from an unsupported filesystem or an ACL retrieval failure. Environment and observations: macOS 15.7.7 on an Intel Mac; Command Line Tools SDK 15.5. In an isolated synthetic test, acl_get_fd_np(fd, ACL_TYPE_EXTENDED) returned NULL with errno == ENOENT for a newly created regular file and directory with no ACL added by the test. The same API returned an ACL containing one ACE after an ACL was added to a separate synthetic file. An invalid file descriptor returned NULL with errno == EBADF. These are observations on this OS and test filesystem only. I have not interpreted ENOENT as proof of ACL absence, and I have not tested fgetattrlist. I could not establish from the available documentation whether NULL/ENOENT is a guaranteed indication of ACL absence. I also could not establish whether ATTR_CMN_RETURNED_ATTRS and KAUTH_FILESEC_NOACL provide a supported, stable user-space contract when using fgetattrlist. Questions: When acl_get_fd_np(fd, ACL_TYPE_EXTENDED) returns NULL with errno == ENOENT for an existing object, does that reliably mean the object has no extended ACL? Could it instead indicate unsupported or unavailable ACL data? When requesting ATTR_CMN_EXTENDED_SECURITY through fgetattrlist, how can a caller confirm that the attribute was actually returned? Is ATTR_CMN_RETURNED_ATTRS supported for fgetattrlist? How should omitted or unsupported attributes be distinguished from ACL absence? Is KAUTH_FILESEC_NOACL a supported, stable public user-space contract for parsing kauth_filesec returned by fgetattrlist? Under which documented conditions, if any, does it establish ACL absence? Does VOL_CAP_INT_EXTENDED_SECURITY establish only volume capability, or can it help establish per-object ACL absence? What documented result distinguishes an ACL-free object from a filesystem that does not support extended security? What guarantees apply when retrieving ACL information through an already-open descriptor if the pathname is renamed or replaced? Are ACL retrieval and fstat an atomic snapshot, particularly if another process changes the ACL? What supported API and decision procedure would Apple recommend for positively confirming no extended ACL on an already-open file or directory, while treating unsupported, omitted, malformed, and error results as distinct fail-closed outcomes? If this behavior is not covered by a supported public API contract, a clarification of that limitation and a reference to the closest documented API would be very helpful. Thank you.
0
0
68
4d
Sign in with Apple: "Sign Up Not Completed" for every App ID in our team — framework returns canceled (1001) with empty userInfo
Sign in with Apple fails for every App ID in our team (K9UFUZF2XW), on every device and every Apple ID we have tried. The system sheet appears, the user authenticates successfully, the sheet then shows "Sign Up Not Completed", and no credential is returned. The failure happens after authentication — this is not a client-side rejection. I have spent several days isolating this and have ruled out everything on my side. Posting the full evidence in case an Apple engineer can look at the server-side state for our team, and in case it helps others hitting the same wall. WHAT THE FRAMEWORK ACTUALLY RETURNS The client library we use (expo-apple-authentication) discards the original NSError, so I patched its native layer to surface the raw error verbatim. This is what ASAuthorizationController hands back to didCompleteWithError, immediately after the user authenticated and the sheet displayed "Sign Up Not Completed": ASAuthorizationError .canceled (rawValue = 1001) domain = com.apple.AuthenticationServices.AuthorizationError code = 1001 desc = The operation couldn't be completed. (com.apple.AuthenticationServices.AuthorizationError, error 1001) userInfo: NSUnderlyingError: So the framework reports a user cancellation that never happened, with a completely empty userInfo and no underlying error. There is no diagnostic information on the client at all — I cannot debug this any further from my side, because the information does not exist there. Note: the same failure surfaces as a different error code depending on the client library version — .unknown (1000) with the older version, .canceled (1001) with the current one. The user-visible behaviour ("Sign Up Not Completed") is identical in both. So the error code is not a reliable signal here. WHAT I RULED OUT Not the App ID. I created a brand-new App ID (kz.auraai.ios) with Sign in with Apple enabled as a primary App ID, built a fresh binary, tested on the same device with the same Apple ID — identical failure. Two independent App IDs in the same team fail the same way. Not the entitlement. Verified inside the signed binary, not just in the portal: application-identifier = K9UFUZF2XW.kz.auraai.ios com.apple.developer.applesignin = ["Default"] I also tried the workaround suggested elsewhere on these forums (removing the entitlement while keeping the capability in the portal). That made it strictly worse: iOS then rejects the request instantly, without showing the sheet at all. Which confirms iOS reads the entitlement correctly, the sheet works, and the user authenticates — the failure is downstream of all of that. No stray or wildcard App IDs. A commonly cited cause is other App IDs in the team lacking the entitlement. I enumerated the whole team via the App Store Connect API: it contains exactly two App IDs, both with APPLE_ID_AUTH = PRIMARY_APP_CONSENT. No wildcard identifiers exist. Not the Apple ID, the device, or the iOS version. The same Apple ID, on the same device, with the same iOS, signs in successfully through another app belonging to a different team (Expo Go, host.exp.Exponent) — a valid identity token is returned. A second, unrelated Apple ID on another device fails in my app in exactly the same way. So this is not scoped to one account: it affects every user of the app. Agreements and membership are in good standing. Program License Agreement accepted 30 June 2026; Developer Agreement accepted 26 June 2026; membership active. Both distribution types fail. TestFlight and ad-hoc. WHAT IS LEFT After all of the above, the only variable that differs between the working case (a different team's app, same device, same Apple ID) and the failing case (my app) is the Apple Developer team itself. This exact signature — sheet renders fully, final server submit fails, "Sign Up Not Completed", delegate reports canceled with no userInfo, not reproducible in other apps on the same device — is documented in thread 122458 ("Error: Sign-Up Not Completed"). In that case it affected multiple developers, including Apple's own sample app, and was ultimately resolved by Apple on the server side, with a recurrence reported in June 2025. THE ASK Could someone from Apple check the server-side Sign in with Apple registration for team K9UFUZF2XW (App IDs kz.auraai.app and kz.auraai.ios)? I am not looking for configuration advice — I have exhausted the client side and there is nothing left to configure. This looks like the same server-side state that was fixed in the referenced cases. Feedback Assistant: FB23716661 (includes sysdiagnose with the Accounts/AuthKit profile, timestamp, and video of the failure). This is currently blocking us: because Sign in with Apple works for none of our users, guideline 4.8 prevents us from offering Google Sign-In, so we are shipping with email-only login. Happy to provide the binary, entitlements dump, or a fresh sysdiagnose on request.
137
6
34k
5d
ATT prompt not shown and status stays notDetermined: how do you handle it?
Hello, our Unity game (iOS/iPadOS) requests App Tracking Transparency on its first scene, before ads are initialized. Background App Review rejected an earlier build under Guideline 2.1(a) for a blank screen on iPad Air 11-inch (M3), iPadOS 27.0. In that build we called requestTrackingAuthorization right at launch and then waited until trackingAuthorizationStatus was no longer .notDetermined. The status never changed, so the app never left the first screen. Current flow (this build was approved) Wait until UIApplication.shared.applicationState == .active and the app has focus. Call requestTrackingAuthorization(completionHandler:) once and wait for the completion handler. If the completion returns .notDetermined, wait about 4 seconds while the app stays active, then call it one more time. Wait until the status is no longer .notDetermined before loading the next scene. There is no timeout. The first scene runs on every cold launch, so if the status is still .notDetermined, the request is made again on the next launch. [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) { dispatch_async(dispatch_get_main_queue(), ^{ // store status; Unity polls it on the main thread }); }];We have not been able to reproduce the original problem on our own devices. Questions for those who have shipped apps with ATT How many times do you retry requestTrackingAuthorization, and how long do you wait between attempts? Is there any limit you know of? If the status still stays .notDetermined after retrying, do you let the user continue and treat it as not authorized (no IDFA), or keep waiting? If you wait, how long before you let the user continue? If you continue without tracking, did App Review ever flag that? Any experience or pointers to documentation would be appreciated.
0
0
60
5d
macOS 27: Accessibility granted via MDM doesn’t cover PostEvent, and leaves a stray TCC managed_overrides row after unenrollment
Our app uses an active CGEventTap (kCGEventTapOptionDefault, mouse down/up events) and relies on the Accessibility permission (Device Control & Data Access). CGEventTapCreate(kCGAnnotatedSessionEventTap, kCGHeadInsertEventTap, kCGEventTapOptionDefault, CGEventMaskBit(kCGEventLeftMouseDown) | CGEventMaskBit(kCGEventLeftMouseUp) | CGEventMaskBit(kCGEventRightMouseDown) | CGEventMaskBit(kCGEventRightMouseUp) | CGEventMaskBit(kCGEventOtherMouseDown) | CGEventMaskBit(kCGEventOtherMouseUp), callback, refcon);On macOS 27.0.1 we see two behaviours when that permission comes from MDM, and we’d like to know whether they’re expected. According to the PrivacyPreferencesPolicyControl.Services documentation, the PPPC Accessibility key is deprecated in macOS 27. It’s replaced by the Privacy → PermissionDefaults setting in the declarative configuration com.apple.configuration.app.settings, and the managed value is a default that the user can change. We tested both the PPPC payload and the DDM configuration. 1. Managed Accessibility grant doesn’t cover PostEvent When the user turns on Accessibility manually in System Settings > Privacy & Security > Accessibility, the event tap works with no further prompts. When Accessibility comes from device management (a PPPC payload or DDM PermissionDefaults): AXIsProcessTrusted() returns true. On the first click through the tap, macOS shows the “control this computer” prompt. tccd adds an access row for kTCCServicePostEvent with auth_value 0 and auth_reason 4. At the same moment, the app’s Accessibility toggle in System Settings switches off. The managed Accessibility row remains auth_value 2, auth_reason 6. After the user accepts the prompt, PostEvent changes to auth_value 2 and the tap works from then on. Questions : Why does a manual Accessibility grant cover an active event tap, while a managed Accessibility default needs a separate PostEvent grant? With PPPC Accessibility deprecated, is DDM Accessibility plus PPPC PostEvent (Allowed) the intended configuration for apps that install active event taps? 2. Stray managed_overrides row after unenrollment On macOS 27, the managed Accessibility value is stored in a new managed_overrides table in /Library/Application Support/com.apple.TCC/TCC.db (schema version 36). On macOS 15 and 26, managed grants were kept in MDMOverrides.plist, and this table doesn’t exist there. Steps : Enroll a never-managed Mac in MDM with user-approved enrollment. Install a profile that grants Accessibility to our app. tccd logs ManagedSettings: inserted managed_overrides for kTCCServiceAccessibility:<bundle id> admin_auth_value=2 auth_value=2. The row is written with policy_id NULL, and policies and active_policy stay empty. Remove the MDM profile from System Settings > General > Device Management. What happens: mdmclient removes the MDM profile first. Removing each TCC payload after that fails with : PlugIn: DetermineUninstallFlags [TCCProfileService] Error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={NSLocalizedDescription=The profile must originate from a user-approved MDM server.}The profiles disappear, MDMOverrides.plist is deleted, and profiles status reports no MDM enrollment. The row remains, with auth_value 1, auth_reason 6 (MDM Policy), policy_id NULL, admin_auth_value 2 and flags 480. tccutil reset Accessibility <bundle id> clears flags but doesn’t remove the row. Later permission prompts and System Settings toggles for the app write to this row instead of to access. Why does the row stay after unenrollment? Is there a supported way to clear it?
2
1
302
5d
App Attest keys stop working after reboot on macOS 27.2.1
App Attest keys stop working after reboot on macOS 27.2.1 On macOS 27.2.1 (26B131), I can reproduce the following in a Developer ID macOS app: Generate and attest a new App Attest key. Generate assertions successfully, including across separate app launches. Reboot the Mac and log back into the same account. Call generateAssertion with the same key ID: it fails with DeviceCheck error 0. I tested two fresh keys created on this OS version; both worked before reboot and failed afterwards. The app and key IDs were unchanged, and isSupported remained true. System logs show: SecKeyCreateSignature failed CryptoTokenKit Code=-3: unable to sign digest AKSError=-536362989A similar failure with the same signing error is reported here: https://github.com/Layr-Labs/d-inference/issues/1161#issuecomment-5824088914 Their workaround involves generating and attesting replacement keys. Is this a known issue? Is there a supported way to keep existing App Attest keys usable across reboots? Reported through Feedback Assistant: FB25075690
0
0
70
1w
Immediate ASAuthorizationError 1000 for some iOS 27 users — FB25610914
We are investigating intermittent native Sign in with Apple failures in TrueScreen, reported on iOS 27.0–27.2.1. Some production attempts return com.apple.AuthenticationServices.AuthorizationError code 1000 (unknown) approximately 15–18 ms after request start, before a visible authorization sheet or any credential. No underlying NSError is supplied to the app. The affected attempts record an active application, foreground-active scene and visible presentation window. The request uses ASAuthorizationAppleIDProvider with fullName/email scopes and a SHA-256 nonce. Each attempt owns its controller, actual presentation window, nonce and continuation; there is no fallback UIWindow. The native failure precedes our Firebase credential exchange. Other users successfully complete Apple sign-in on iOS 27. We do not know whether the cause is account/device state, App ID configuration, our request, the OS or an Apple service. We are not claiming a confirmed iOS regression. Feedback Assistant report: FB25610914. It includes the implementation checks and evidence limits. Our current staging simulator runs on iOS 27.0/27.2 show the normal prompt to sign in to an Apple Account in Settings, rather than reproducing the immediate production failure. We do not yet have an affected physical-device Accounts/AuthKit-profile sysdiagnose or a reliable minimal reproducer. We reviewed TN3107 and the DTS guidance for Sign in with Apple diagnostics. Which additional checks would distinguish the possible causes of this immediate native 1000? Is this an expected error for some unavailable/restricted Apple Account states, and is there a way to obtain a more actionable native error? We will supplement the Feedback report with an affected-device capture when available.
0
0
57
1w
Credential Provider Extension should allow BE=0, BS=0 for device-bound passkeys
In these threads, it was clarified that Credential Provider Extensions must set both Backup Eligible (BE) and Backup State (BS) flags to 1 in authenticator data: https://developer.apple.com/forums/thread/745605 https://developer.apple.com/forums/thread/787629 However, I'm developing a passkey manager that intentionally stores credentials only on the local device. My implementation uses: kSecAttrAccessibleWhenUnlockedThisDeviceOnly for keychain items kSecAttrTokenIDSecureEnclave for private keys No iCloud sync or backup These credentials are, by definition, single-device credentials. According to the WebAuthn specification, they should be represented with BE=0, BS=0. Currently, I'm forced to set BE=1, BS=1 to make the extension work, which misrepresents the actual backup status to relying parties. This is problematic because: Servers using BE/BS flags for security policies will incorrectly classify these as synced passkeys Users who specifically want device-bound credentials for higher security cannot get accurate flag representation Request: Please allow Credential Provider Extensions to return credentials with BE=0, BS=0 for legitimate device-bound passkey implementations. Environment: macOS 26.2 (25C56), Xcode 26.2 (17C52)
2
5
1.5k
1w
Privacy & Security Resources
General: Forums topic: Privacy & Security Privacy Resources Security Resources Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
Replies
0
Boosts
0
Views
1.5k
Activity
Jul ’25
Sign in with Apple account deletion: does revoking one refresh token invalidate the others?
We’re designing account deletion for a native iOS app that uses Sign in with Apple. We’ve reviewed TN3194 and the documentation for /auth/revoke. Suppose two separate sign-ins by the same Apple user under the same client_id issue distinct refresh tokens A and B, and both tokens are valid immediately before revocation. If we revoke A successfully using /auth/revoke, does B remain valid? Does the answer depend on whether the supplied token is the older or newer one? For account deletion, what is the recommended procedure for this client_id? Is revoking one valid refresh token sufficient to remove the user’s Sign in with Apple authorization for the app, or should the server revoke each stored refresh token individually? Could you clarify what behavior an implementation can rely on? Thank you.
Replies
0
Boosts
0
Views
21
Activity
6h
Supported macOS API for loopback-only confinement with synchronous bind/connect denial?
I am asking which supported public macOS interface can meet the requirements below. This is a design/supportability question; I do not have a focused Xcode reproducer. Recorded host: macOS 26.6.2 (build 25G83), Apple silicon (arm64). Workload: an unchanged, third-party Flutter/Dart command-line toolchain and its process tree. This includes exec descendants and native code called directly through FFI, including SQLite loaded through FFI. Question: Is there a currently supported public interface and exact policy, or a documented supported composition of public interfaces, that can kernel-enforce requested-address bind/connect restrictions on that tree with all of the following properties? Numeric 127.0.0.1 TCP ephemeral bind/listen/connect/echo must work. The actual bind(AF_INET, 0.0.0.0:0) call must itself fail immediately, at the call, with EPERM or EACCES. The actual connect(AF_INET, 192.0.2.1:9) call must itself fail immediately, at the call, with EPERM or EACCES. The restriction must apply across exec children, native/direct calls (not only libc or framework wrappers), inherited file descriptors and SQLite FFI. The tree's necessary filesystem read, write and executable/library-load set must be specifiable and bounded. Protected originals and SDK, Git and cache identities must stay unmodified, credentials and sealed evidence must stay protected, and no broad new permissions are granted. Signing, entitlements, privilege, installation/activation, user or admin approval, inheritance/FD scope and host applicability must be specified authoritatively. These do not meet the requirements: flow or packet drop, timeout, connection refused, no route, a missing interface, user-space interception or wrappers, unsupported or private interfaces, reduced SIP, or an operation that never ran. Specific points we would like confirmed: a. App Sandbox. The documented com.apple.security.network.client and com.apple.security.network.server entitlements are Boolean and have no per-address selector. Is there any supported way to allow listening on 127.0.0.1 while making a wildcard 0.0.0.0 bind fail with EPERM/EACCES? Can an existing externally built toolchain and all of its descendants be confined this way? Apple's helper guidance re-signs embedded tools with only com.apple.security.app-sandbox and com.apple.security.inherit. b. Network Extension. Can a content filter (NEFilterDataProvider), packet filter provider, transparent proxy or another provider type make the original bind() or connect() syscall itself return EPERM/EACCES, rather than dropping the flow later? If a new-flow drop verdict makes connect() fail, is the resulting errno documented and guaranteed? c. Endpoint Security. We understand the AUTH_UIPC_BIND/AUTH_UIPC_CONNECT events cover only UNIX-domain sockets. Is there any supported Endpoint Security event that authorizes IPv4 TCP bind/connect? d. Custom sandbox profiles. Is a custom sandbox profile (SBPL) applied through sandbox-exec or sandbox_init a supported interface for third-party products on this macOS version? e. Delegated paths (an additional question, separate from 1–6): Does any candidate interface cover network activity performed for the tree by system daemons or local relays? If a qualifying interface exists, please name the exact public interface and policy/configuration, the supported macOS versions, and the requirements under point 6. Please also confirm that the two denied calls are guaranteed to return EPERM/EACCES at the call. If none exists, please say so, and say which numbered property has no supported public interface. We will record that as "no supported public interface", not as a statement that the behaviour is technically impossible. Any closest supported alternative you mention will be recorded as information only. It will not be treated as meeting properties 1–6. No logs, source code, credentials or internal evidence are attached.
Replies
0
Boosts
0
Views
55
Activity
1d
Detecting or restricting ScreenCaptureKit capture of a specific app's windows
Hi, I'm exploring macOS options to protect the windows of selected apps from being screen-captured or recorded by other apps (enterprise Macs, managed via MDM). Is there a supported API or Endpoint Security event that tells when a process starts a screen capture or recording (ScreenCaptureKit), and whether it captures a display or a single window? Is there a supported way, for example via MDM, to prevent other apps from capturing a specific app's windows? NSWindow.sharingType = .none no longer seems to exclude a window from ScreenCaptureKit on macOS 15 and later. Is this expected, and is there an alternative? Tested on macOS 26.3.1 (Apple silicon). Thanks.
Replies
0
Boosts
0
Views
30
Activity
1d
No lifecycle notification when entering App Switcher while app remains inactive after Face ID
We use LAContext.evaluatePolicy(.deviceOwnerAuthentication) for a local app lock. On an iPhone 16 Pro running iOS 26.6.2, after authentication succeeds, UIApplication.shared.applicationState can remain .inactive for approximately 2–8 seconds although the app UI is visible. If the user enters the App Switcher during this interval, the app receives no additional willResignActive or didEnterBackground notification. Returning to the app produces only didBecomeActive. This means the app cannot distinguish between: remaining in the app while the Face ID UI finishes dismissing; and entering the App Switcher and returning during the same inactive interval. Reproduction: Run a minimal UIKit app on a physical Face ID device. Call evaluatePolicy(.deviceOwnerAuthentication). Immediately after successful authentication, enter the App Switcher before didBecomeActive. Wait three seconds and return. Is there a supported public API or lifecycle pattern that lets an app lock immediately in this situation without keeping its content covered until didBecomeActive?
Replies
2
Boosts
0
Views
84
Activity
1d
Reading Mouse Events with CGEvent tap from a background app in macOS 27.3
WIth macOS 27.3 (beta 2) things have changed quite a bit for security, see Updates to Device Control and Data Access, and Full Disk Access in macOS I have an app which uses what (used to be called) the Privacy & Security / Accessibility permissions in order to receive mouse events in the background to read them and occasionally modify them. The method used: The app checks AXIsProcessTrustedWithOptions to see if it has permission. If it doesn't have permission, it uses the kAXTrustedCheckOptionPrompt option which would open up the privacy & Security / Accessibility pane. Because that process has been a little flakey in macOS, my app has a backup option, where it runs 'open "x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_Accessibility"' and then walks the user through the steps with onscreen instructions. When permission is granted, the app creates a CGEvent tap SessionEvent tap using the HeadInsertEvent option to receive mouse and touch mouse events. See CGEvent.tapCreate In macOS 27.3 beta 2, always returns false using kAXTrustedCheckOptionPrompt fails to do anything open "x-apple.systempreferences:com.apple.settings.PrivacySecurity.extension?Privacy_Accessibility fails to do anything. CGEvent tap fails A few questions: will my third party app be allowed to use CGEventTaps to read mouse and touchpad events? Or has this been cut off completely and only available to first party apps? If it is allowed, how? Has the permission for this moved to a different System Preference pane? is a CGEvent tap the way to do it? I totally understand that security is important, and apps should not have wide-ranging permissions. I'd love to find a way to keep my app running with the minimal permissions needed.
Replies
6
Boosts
0
Views
742
Activity
1d
Node aborts during dyld startup under sandbox-exec — macOS 27.2.1 (26B131)
I am seeking supported diagnostic guidance for an early process-startup failure on Apple Silicon running macOS 27.2.1, build 26B131. An owner-operated Python controller launches Node.js 24.19.0 through /usr/bin/sandbox-exec with a restrictive default-deny profile. The profile denies networking, restricts filesystem writes to a disposable workspace, and permits reads and executable mapping beneath /System and /usr/lib, as well as the selected runtime directories. One attempt terminated immediately with SIGABRT, before any JavaScript application/probe output, dependency installation or application compilation. The controller recorded exit -6 after approximately 0.041 seconds; stdout and stderr were empty. The matching crash report identifies node and EXC_CRASH/SIGABRT, termination namespace 0x23, code 2. The faulting stack includes ignition_halt, boot_boot, ignite, dyld4::CacheFinder::CacheFinder and dyld4::ProcessConfig::DyldCache::DyldCache. No explanatory abort message is present in the retained report. Examination of the retained unified-log interval did not identify a sandbox denial attributable to Node or an explicit dyld failure reason. This does not establish that no denial occurred. We have not established whether this is a profile omission, a loader/OS compatibility issue, or another interaction. No permissions have been expanded and the failed attempt has not been retried. Could you advise: What supported diagnostic method can identify the operation or loader condition responsible for this abort? Is there documented sandbox configuration required for dyld startup on this macOS build, and is sandbox-exec supported for this constrained command-line use case? Is there a recognised compatibility issue or supported workaround that preserves restricted filesystem access and denied networking? What is the smallest additional diagnostic to collect, and which specific fields would be useful? We seek publicly supportable diagnostic guidance, not disclosure of private implementation details. A sanitised profile or targeted diagnostic excerpt can be provided following separate review; no raw crash reports, private paths, credentials, application source or unrelated logs are attached.
Replies
1
Boosts
0
Views
310
Activity
2d
macOS 27.3: which keyboard-event APIs trigger "System & App Protection Override" for an assistive text expander?
I make a sandboxed Mac App Store text expander, used by many people as an assistive tool: people with motor and neurological conditions type a short abbreviation and get the full text. On a fresh install under macOS 27.3 beta 2, turning on abbreviation expansion brings up the "System & App Protection Override" dialog. Before the user can allow anything, it lists Read, Change, Delete, and Export All Your Data; View Hidden and Recently Deleted Photos; View History and Browse As You; Control Your Mac, Apps, and Settings; and Read and Monitor Everything. My app uses none of that, and for users who rely on it as assistive technology, the dialog reads as a warning to avoid the app. What I actually use: An active CGEventTap at kCGSessionEventTap (keyDown/keyUp/mouse-up) that keeps a short in-memory buffer of the current word. It briefly holds back and replays keystrokes during an expansion, and consumes the trigger key. A listen-only tap at kCGAnnotatedSessionEventTap, reading only kCGEventTargetUnixProcessID. CGEventPost to send backspaces, ⌘V (for rich text and images) and Tab/Return, only to the frontmost app and only in response to the user's typing. CGWindowListCopyWindowInfo, reading only PID, layer and bounds. No AX reads or writes (I only call AXIsProcessTrusted), no Apple Events, no screen capture. Questions: Which of these puts an app under System & App Protection Override rather than the new Accessibility setting? Is it the active tap, CGEventPost, or both? Will an app granted the upcoming assistive-technology entitlement still be able to post keyboard events to the frontmost app? I tried AXUIElementSetAttributeValue(kAXSelectedTextAttribute) instead, but it handles only plain text and fails in browsers, Electron apps and web editors. Is there an entitlement identifier or request route yet? Filed as FB25698042
Replies
0
Boosts
0
Views
141
Activity
2d
Technical feasibility — Restricting PIV RSA signing to a specific signed macOS application
Hello, I'm developing BenStrukt, a macOS application that uses RSA-2048 signatures to authorize individual operations through a local IPC protocol. We are evaluating the YubiKey 5C NFC using an RSA private key generated on-device in PIV slot 9C, configured with PIN Policy Always and Touch Policy Always. Our critical security requirement is not only that the RSA private key must be non-exportable, but also that only our specifically signed macOS application can initiate authorized signing operations. According to Apple's documentation, external token items are exposed through kSecAttrAccessGroupToken, which is accessible by default without a specific keychain access-group entitlement. Could you clarify whether there is a documented, supported mechanism to enforce application-specific authorization for PIV private-key operations on macOS? In particular, can a second application running under the same macOS user obtain a reference to the key and request a signature when the correct PIN and physical touch are supplied? Would CryptoTokenKit, a custom token extension, code-signing requirements, or another supported mechanism prevent this, including access through alternative smart-card interfaces such as PC/SC? If application-specific isolation is not supported, could you explicitly confirm this limitation? We need to establish these guarantees before purchasing hardware or modifying our existing signing architecture. Thank you for your technical guidance. Oliver BenFounder — BenStrukt
Replies
0
Boosts
0
Views
42
Activity
2d
Will Endpoint Security clients get an entitlement to keep the previous Full Disk Access UX in macOS 27.3?
Apple recent news "Updates to Device Control and Data Access, and Full Disk Access in macOS" describes a redesigned Full Disk Access (FDA) UX in macOS 27.3. I understand and support the goal of giving users more transparency and granular control over their data. However, I'd like to raise a concern about a specific class of apps: Endpoint Security clients (for example antivirus). The EndpointSecurity.framework requires Full Disk Access to create an es_client_t and to monitor system events. For these products, FDA is not an optional convenience - it is the only supported and recommended way to deliver their core functionality. The new onboarding flow actively discourages users from granting full access (red highlighting, warnings that granting FDA "Bypass System Protections"). For a security solution, this creates a contradictory and confusing situation: the user is told that installing security software will lower the protection level of their system. This makes first-time setup of such products significantly harder. The news states that developers of apps that use FDA for disk backup (and assistive technologies using the new Accessibility settings) can request entitlements to deliver the same onboarding experience as before macOS 27.3. That is great news for backup products. My questions are: Is a similar entitlement planned for Endpoint Security clients? The news explicitly mentions "disk backup" and assistive technologies, but not endpoint security, which arguably has an even stronger requirement for FDA since es_client_t creation depends on it. Would it make sense for Apple to let every app that holds the com.apple.developer.endpoint-security.client entitlement keep the previous FDA UX for new installations, similar to what is proposed for disk backup apps? If an entitlement is planned, when will the details be published, and how can developers of existing security products request it? I've also create the Feedback - FB25694046. Thank you.
Replies
0
Boosts
1
Views
56
Activity
2d
Can an XPC receiver verify that App Sandbox is active for the sender?
We are designing a macOS launcher that waits for a one-use reply before starting a child process. Two instances of the same signed launcher may be running. Before replying, the receiving service needs to verify that App Sandbox is active in the specific process instance that sent the request. We can check the sender’s signed App Sandbox entitlement. Is there a supported public API or documented procedure that also lets the receiver verify the sender’s active runtime sandbox? If so, what evidence ties that observation to the sender of this XPC message, including if the sender exits and its PID is reused? Please identify the documentation and applicable macOS versions. If the supported check establishes only the signed entitlement, confirmation of that limit would also help.
Replies
0
Boosts
0
Views
121
Activity
3d
Two-way sync with Apple Calendar from an Expo/React Native app: iCloud CalDAV on the server, or EventKit on the device?
I'm building a family calendar app (Expo SDK 56 + Supabase). I already have two-way Google Calendar sync running server-side: OAuth, a calendar the app creates in the user's account, push notifications plus an incremental sync token, and an outbox for writes going out. Now I need two-way sync with Apple Calendar. A read-only .ics subscription doesn't work for me, because users need to edit on either side. I see two options: A: iCloud CalDAV from my server The user creates an app-specific password at appleid.apple.com and pastes it into the app. The server creates its own calendar (MKCALENDAR) and syncs with sync-collection, using the same outbox/worker I already have for Google. ✅ Works on every platform, including web, and keeps syncing when the app is closed. ❌ The setup is clunky for non-technical parents. ❌ An app-specific password unlocks the whole iCloud account (mail, contacts, every calendar), so I'd be storing a much broader credential than I need. ❌ iCloud doesn't push changes, so I'd have to poll. ❓ Apple doesn't officially support this. B: EventKit on the device (expo-calendar) The phone reads and writes its local calendars (iCloud, Exchange, and on Android whatever is in CalendarContract). ✅ No credentials, the OS permission prompt handles access, and it covers every account on the phone. ❌ Syncs only while the app runs (background fetch on iOS is unreliable). ❌ One user with two devices means two writers. ❌ Needs a native build, and does nothing on web. Questions for anyone who has shipped one of these: Is anyone running iCloud CalDAV with app-specific passwords in production? How do users take the setup, and has Apple ever pushed back or broken it? If you went with EventKit, how did you handle background sync and conflicts across several devices? Is there a third option I'm missing, or a hybrid (for example EventKit on iOS, server sync everywhere else)?
Replies
0
Boosts
0
Views
182
Activity
4d
Authentication-UI refusal for a file-based certificate query on macOS
The guidance in https://developer.apple.com/forums/thread/739774 explains the context search list, the kSecMatchSearchList override and continued use of deprecated file-based APIs where that keychain model is required. For a SecItemCopyMatching query using kSecClassCertificate and an explicitly supplied file-based test keychain, what is the supported way to refuse authentication UI rather than allow a prompt? I am considering macOS 26.6.1 with the macOS 27.0 SDK; please clarify applicability to that combination and any relevant application-context restrictions. In particular, which refusal mechanism applies to the file-based path given the deprecation of earlier authentication-UI options? If access would require keychain unlock or authentication UI, is an error guaranteed, or can the query omit items and return success? A public documentation reference and any version limitations would be helpful. This is a contract question for a prospective test; I have not run it or reproduced a problem.
Replies
0
Boosts
0
Views
102
Activity
4d
Supported way to distinguish no extended ACL from ACL retrieval failure for an open file descriptor on macOS
Hello Apple Developer Forums, I am looking for a documented, supported user-space method on macOS to verify that an already-open file or directory has no extended ACL, while distinguishing that state from an unsupported filesystem or an ACL retrieval failure. Environment and observations: macOS 15.7.7 on an Intel Mac; Command Line Tools SDK 15.5. In an isolated synthetic test, acl_get_fd_np(fd, ACL_TYPE_EXTENDED) returned NULL with errno == ENOENT for a newly created regular file and directory with no ACL added by the test. The same API returned an ACL containing one ACE after an ACL was added to a separate synthetic file. An invalid file descriptor returned NULL with errno == EBADF. These are observations on this OS and test filesystem only. I have not interpreted ENOENT as proof of ACL absence, and I have not tested fgetattrlist. I could not establish from the available documentation whether NULL/ENOENT is a guaranteed indication of ACL absence. I also could not establish whether ATTR_CMN_RETURNED_ATTRS and KAUTH_FILESEC_NOACL provide a supported, stable user-space contract when using fgetattrlist. Questions: When acl_get_fd_np(fd, ACL_TYPE_EXTENDED) returns NULL with errno == ENOENT for an existing object, does that reliably mean the object has no extended ACL? Could it instead indicate unsupported or unavailable ACL data? When requesting ATTR_CMN_EXTENDED_SECURITY through fgetattrlist, how can a caller confirm that the attribute was actually returned? Is ATTR_CMN_RETURNED_ATTRS supported for fgetattrlist? How should omitted or unsupported attributes be distinguished from ACL absence? Is KAUTH_FILESEC_NOACL a supported, stable public user-space contract for parsing kauth_filesec returned by fgetattrlist? Under which documented conditions, if any, does it establish ACL absence? Does VOL_CAP_INT_EXTENDED_SECURITY establish only volume capability, or can it help establish per-object ACL absence? What documented result distinguishes an ACL-free object from a filesystem that does not support extended security? What guarantees apply when retrieving ACL information through an already-open descriptor if the pathname is renamed or replaced? Are ACL retrieval and fstat an atomic snapshot, particularly if another process changes the ACL? What supported API and decision procedure would Apple recommend for positively confirming no extended ACL on an already-open file or directory, while treating unsupported, omitted, malformed, and error results as distinct fail-closed outcomes? If this behavior is not covered by a supported public API contract, a clarification of that limitation and a reference to the closest documented API would be very helpful. Thank you.
Replies
0
Boosts
0
Views
68
Activity
4d
Sign in with Apple: "Sign Up Not Completed" for every App ID in our team — framework returns canceled (1001) with empty userInfo
Sign in with Apple fails for every App ID in our team (K9UFUZF2XW), on every device and every Apple ID we have tried. The system sheet appears, the user authenticates successfully, the sheet then shows "Sign Up Not Completed", and no credential is returned. The failure happens after authentication — this is not a client-side rejection. I have spent several days isolating this and have ruled out everything on my side. Posting the full evidence in case an Apple engineer can look at the server-side state for our team, and in case it helps others hitting the same wall. WHAT THE FRAMEWORK ACTUALLY RETURNS The client library we use (expo-apple-authentication) discards the original NSError, so I patched its native layer to surface the raw error verbatim. This is what ASAuthorizationController hands back to didCompleteWithError, immediately after the user authenticated and the sheet displayed "Sign Up Not Completed": ASAuthorizationError .canceled (rawValue = 1001) domain = com.apple.AuthenticationServices.AuthorizationError code = 1001 desc = The operation couldn't be completed. (com.apple.AuthenticationServices.AuthorizationError, error 1001) userInfo: NSUnderlyingError: So the framework reports a user cancellation that never happened, with a completely empty userInfo and no underlying error. There is no diagnostic information on the client at all — I cannot debug this any further from my side, because the information does not exist there. Note: the same failure surfaces as a different error code depending on the client library version — .unknown (1000) with the older version, .canceled (1001) with the current one. The user-visible behaviour ("Sign Up Not Completed") is identical in both. So the error code is not a reliable signal here. WHAT I RULED OUT Not the App ID. I created a brand-new App ID (kz.auraai.ios) with Sign in with Apple enabled as a primary App ID, built a fresh binary, tested on the same device with the same Apple ID — identical failure. Two independent App IDs in the same team fail the same way. Not the entitlement. Verified inside the signed binary, not just in the portal: application-identifier = K9UFUZF2XW.kz.auraai.ios com.apple.developer.applesignin = ["Default"] I also tried the workaround suggested elsewhere on these forums (removing the entitlement while keeping the capability in the portal). That made it strictly worse: iOS then rejects the request instantly, without showing the sheet at all. Which confirms iOS reads the entitlement correctly, the sheet works, and the user authenticates — the failure is downstream of all of that. No stray or wildcard App IDs. A commonly cited cause is other App IDs in the team lacking the entitlement. I enumerated the whole team via the App Store Connect API: it contains exactly two App IDs, both with APPLE_ID_AUTH = PRIMARY_APP_CONSENT. No wildcard identifiers exist. Not the Apple ID, the device, or the iOS version. The same Apple ID, on the same device, with the same iOS, signs in successfully through another app belonging to a different team (Expo Go, host.exp.Exponent) — a valid identity token is returned. A second, unrelated Apple ID on another device fails in my app in exactly the same way. So this is not scoped to one account: it affects every user of the app. Agreements and membership are in good standing. Program License Agreement accepted 30 June 2026; Developer Agreement accepted 26 June 2026; membership active. Both distribution types fail. TestFlight and ad-hoc. WHAT IS LEFT After all of the above, the only variable that differs between the working case (a different team's app, same device, same Apple ID) and the failing case (my app) is the Apple Developer team itself. This exact signature — sheet renders fully, final server submit fails, "Sign Up Not Completed", delegate reports canceled with no userInfo, not reproducible in other apps on the same device — is documented in thread 122458 ("Error: Sign-Up Not Completed"). In that case it affected multiple developers, including Apple's own sample app, and was ultimately resolved by Apple on the server side, with a recurrence reported in June 2025. THE ASK Could someone from Apple check the server-side Sign in with Apple registration for team K9UFUZF2XW (App IDs kz.auraai.app and kz.auraai.ios)? I am not looking for configuration advice — I have exhausted the client side and there is nothing left to configure. This looks like the same server-side state that was fixed in the referenced cases. Feedback Assistant: FB23716661 (includes sysdiagnose with the Accounts/AuthKit profile, timestamp, and video of the failure). This is currently blocking us: because Sign in with Apple works for none of our users, guideline 4.8 prevents us from offering Google Sign-In, so we are shipping with email-only login. Happy to provide the binary, entitlements dump, or a fresh sysdiagnose on request.
Replies
137
Boosts
6
Views
34k
Activity
5d
ATT prompt not shown and status stays notDetermined: how do you handle it?
Hello, our Unity game (iOS/iPadOS) requests App Tracking Transparency on its first scene, before ads are initialized. Background App Review rejected an earlier build under Guideline 2.1(a) for a blank screen on iPad Air 11-inch (M3), iPadOS 27.0. In that build we called requestTrackingAuthorization right at launch and then waited until trackingAuthorizationStatus was no longer .notDetermined. The status never changed, so the app never left the first screen. Current flow (this build was approved) Wait until UIApplication.shared.applicationState == .active and the app has focus. Call requestTrackingAuthorization(completionHandler:) once and wait for the completion handler. If the completion returns .notDetermined, wait about 4 seconds while the app stays active, then call it one more time. Wait until the status is no longer .notDetermined before loading the next scene. There is no timeout. The first scene runs on every cold launch, so if the status is still .notDetermined, the request is made again on the next launch. [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) { dispatch_async(dispatch_get_main_queue(), ^{ // store status; Unity polls it on the main thread }); }];We have not been able to reproduce the original problem on our own devices. Questions for those who have shipped apps with ATT How many times do you retry requestTrackingAuthorization, and how long do you wait between attempts? Is there any limit you know of? If the status still stays .notDetermined after retrying, do you let the user continue and treat it as not authorized (no IDFA), or keep waiting? If you wait, how long before you let the user continue? If you continue without tracking, did App Review ever flag that? Any experience or pointers to documentation would be appreciated.
Replies
0
Boosts
0
Views
60
Activity
5d
macOS 27: Accessibility granted via MDM doesn’t cover PostEvent, and leaves a stray TCC managed_overrides row after unenrollment
Our app uses an active CGEventTap (kCGEventTapOptionDefault, mouse down/up events) and relies on the Accessibility permission (Device Control & Data Access). CGEventTapCreate(kCGAnnotatedSessionEventTap, kCGHeadInsertEventTap, kCGEventTapOptionDefault, CGEventMaskBit(kCGEventLeftMouseDown) | CGEventMaskBit(kCGEventLeftMouseUp) | CGEventMaskBit(kCGEventRightMouseDown) | CGEventMaskBit(kCGEventRightMouseUp) | CGEventMaskBit(kCGEventOtherMouseDown) | CGEventMaskBit(kCGEventOtherMouseUp), callback, refcon);On macOS 27.0.1 we see two behaviours when that permission comes from MDM, and we’d like to know whether they’re expected. According to the PrivacyPreferencesPolicyControl.Services documentation, the PPPC Accessibility key is deprecated in macOS 27. It’s replaced by the Privacy → PermissionDefaults setting in the declarative configuration com.apple.configuration.app.settings, and the managed value is a default that the user can change. We tested both the PPPC payload and the DDM configuration. 1. Managed Accessibility grant doesn’t cover PostEvent When the user turns on Accessibility manually in System Settings > Privacy & Security > Accessibility, the event tap works with no further prompts. When Accessibility comes from device management (a PPPC payload or DDM PermissionDefaults): AXIsProcessTrusted() returns true. On the first click through the tap, macOS shows the “control this computer” prompt. tccd adds an access row for kTCCServicePostEvent with auth_value 0 and auth_reason 4. At the same moment, the app’s Accessibility toggle in System Settings switches off. The managed Accessibility row remains auth_value 2, auth_reason 6. After the user accepts the prompt, PostEvent changes to auth_value 2 and the tap works from then on. Questions : Why does a manual Accessibility grant cover an active event tap, while a managed Accessibility default needs a separate PostEvent grant? With PPPC Accessibility deprecated, is DDM Accessibility plus PPPC PostEvent (Allowed) the intended configuration for apps that install active event taps? 2. Stray managed_overrides row after unenrollment On macOS 27, the managed Accessibility value is stored in a new managed_overrides table in /Library/Application Support/com.apple.TCC/TCC.db (schema version 36). On macOS 15 and 26, managed grants were kept in MDMOverrides.plist, and this table doesn’t exist there. Steps : Enroll a never-managed Mac in MDM with user-approved enrollment. Install a profile that grants Accessibility to our app. tccd logs ManagedSettings: inserted managed_overrides for kTCCServiceAccessibility:<bundle id> admin_auth_value=2 auth_value=2. The row is written with policy_id NULL, and policies and active_policy stay empty. Remove the MDM profile from System Settings > General > Device Management. What happens: mdmclient removes the MDM profile first. Removing each TCC payload after that fails with : PlugIn: DetermineUninstallFlags [TCCProfileService] Error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" UserInfo={NSLocalizedDescription=The profile must originate from a user-approved MDM server.}The profiles disappear, MDMOverrides.plist is deleted, and profiles status reports no MDM enrollment. The row remains, with auth_value 1, auth_reason 6 (MDM Policy), policy_id NULL, admin_auth_value 2 and flags 480. tccutil reset Accessibility <bundle id> clears flags but doesn’t remove the row. Later permission prompts and System Settings toggles for the app write to this row instead of to access. Why does the row stay after unenrollment? Is there a supported way to clear it?
Replies
2
Boosts
1
Views
302
Activity
5d
App Attest keys stop working after reboot on macOS 27.2.1
App Attest keys stop working after reboot on macOS 27.2.1 On macOS 27.2.1 (26B131), I can reproduce the following in a Developer ID macOS app: Generate and attest a new App Attest key. Generate assertions successfully, including across separate app launches. Reboot the Mac and log back into the same account. Call generateAssertion with the same key ID: it fails with DeviceCheck error 0. I tested two fresh keys created on this OS version; both worked before reboot and failed afterwards. The app and key IDs were unchanged, and isSupported remained true. System logs show: SecKeyCreateSignature failed CryptoTokenKit Code=-3: unable to sign digest AKSError=-536362989A similar failure with the same signing error is reported here: https://github.com/Layr-Labs/d-inference/issues/1161#issuecomment-5824088914 Their workaround involves generating and attesting replacement keys. Is this a known issue? Is there a supported way to keep existing App Attest keys usable across reboots? Reported through Feedback Assistant: FB25075690
Replies
0
Boosts
0
Views
70
Activity
1w
Immediate ASAuthorizationError 1000 for some iOS 27 users — FB25610914
We are investigating intermittent native Sign in with Apple failures in TrueScreen, reported on iOS 27.0–27.2.1. Some production attempts return com.apple.AuthenticationServices.AuthorizationError code 1000 (unknown) approximately 15–18 ms after request start, before a visible authorization sheet or any credential. No underlying NSError is supplied to the app. The affected attempts record an active application, foreground-active scene and visible presentation window. The request uses ASAuthorizationAppleIDProvider with fullName/email scopes and a SHA-256 nonce. Each attempt owns its controller, actual presentation window, nonce and continuation; there is no fallback UIWindow. The native failure precedes our Firebase credential exchange. Other users successfully complete Apple sign-in on iOS 27. We do not know whether the cause is account/device state, App ID configuration, our request, the OS or an Apple service. We are not claiming a confirmed iOS regression. Feedback Assistant report: FB25610914. It includes the implementation checks and evidence limits. Our current staging simulator runs on iOS 27.0/27.2 show the normal prompt to sign in to an Apple Account in Settings, rather than reproducing the immediate production failure. We do not yet have an affected physical-device Accounts/AuthKit-profile sysdiagnose or a reliable minimal reproducer. We reviewed TN3107 and the DTS guidance for Sign in with Apple diagnostics. Which additional checks would distinguish the possible causes of this immediate native 1000? Is this an expected error for some unavailable/restricted Apple Account states, and is there a way to obtain a more actionable native error? We will supplement the Feedback report with an affected-device capture when available.
Replies
0
Boosts
0
Views
57
Activity
1w
Credential Provider Extension should allow BE=0, BS=0 for device-bound passkeys
In these threads, it was clarified that Credential Provider Extensions must set both Backup Eligible (BE) and Backup State (BS) flags to 1 in authenticator data: https://developer.apple.com/forums/thread/745605 https://developer.apple.com/forums/thread/787629 However, I'm developing a passkey manager that intentionally stores credentials only on the local device. My implementation uses: kSecAttrAccessibleWhenUnlockedThisDeviceOnly for keychain items kSecAttrTokenIDSecureEnclave for private keys No iCloud sync or backup These credentials are, by definition, single-device credentials. According to the WebAuthn specification, they should be represented with BE=0, BS=0. Currently, I'm forced to set BE=1, BS=1 to make the extension work, which misrepresents the actual backup status to relying parties. This is problematic because: Servers using BE/BS flags for security policies will incorrectly classify these as synced passkeys Users who specifically want device-bound credentials for higher security cannot get accurate flag representation Request: Please allow Credential Provider Extensions to return credentials with BE=0, BS=0 for legitimate device-bound passkey implementations. Environment: macOS 26.2 (25C56), Xcode 26.2 (17C52)
Replies
2
Boosts
5
Views
1.5k
Activity
1w