Explore the core architecture of the operating system, including the kernel, memory management, and process scheduling.

Posts under Core OS subtopic

Post

Replies

Boosts

Views

Activity

Core OS Resources
General: DevForums subtopic: App & System Services > Core OS Core OS is a catch-all subtopic for low-level APIs that don’t fall into one of these more specific areas: Processes & Concurrency Resources Files and Storage Resources Networking Resources Network Extension Resources Security Resources Virtualization Resources Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
0
0
2.2k
Aug ’25
Endpoint Security: pending AUTH_CREATE and new operations after the last client disappears
I am reviewing the supported Endpoint Security API contract for a design targeting macOS 27.2. I have not activated an Endpoint Security extension or reproduced this scenario. This is a question about documented API behavior. In “Build an Endpoint Security app” at WWDC20, Apple explains that Endpoint Security applies an implicit allow result when no clients are subscribed to an event’s AUTH variant. The current documentation for es_set_deadline_miss_mode describes handling missed authorization deadlines. It also documents denial when an AUTH message is dropped because the queue of a client configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED is full. Consider a single client created with es_new_client, subscribed to ES_EVENT_TYPE_AUTH_CREATE, and configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED. What supported behavior applies in these two situations? An AUTH_CREATE request has already been delivered and remains unanswered when the client crashes, disconnects, is destroyed with es_delete_client, or unsubscribes while remaining connected. How is that pending request resolved? Please distinguish these cases if their behavior differs. A new, otherwise permitted creation is attempted while no client is subscribed to AUTH_CREATE. Does the implicit-allow rule described at WWDC20 still apply on macOS 27.2, regardless of the previous client’s FAIL_CLOSED setting? We need to determine whether the design requires an independent control during the interval without a subscribed client. References to the supported contract, applicable versions, and conditions would be very helpful. References: https://developer.apple.com/videos/play/wwdc2020/10159/ https://developer.apple.com/documentation/endpointsecurity/es_set_deadline_miss_mode(_:_:) https://developer.apple.com/documentation/endpointsecurity/es_delete_client(_:) https://developer.apple.com/documentation/endpointsecurity/es_unsubscribe_all(_:)
0
0
101
22h
Virtualization.framework — stop completion and storage release
Hello Apple Developer Support, We are evaluating a macOS VM controller using VZVirtualMachine and would appreciate clarification: Does stop(completionHandler:) have any documented maximum completion time? What should a controller do if completion never arrives? After successful completion, are all backend writes finished and disk-image resources released, or is additional teardown required? What documented sequence establishes that the VM’s complete writable storage set—including disk images and macOS auxiliary storage—can safely be deleted, replaced or restored? Do these guarantees depend on caching/synchronization mode or macOS version? We understand that forced stop does not guarantee a clean guest shutdown or application consistency. Our question concerns host-side storage quiescence and resource release. Documentation references would be helpful. Thank you.
1
0
113
1d
Core Bluetooth centralManager(_:didDiscover:advertisementData:rssi:) not triggered in background after Control Center Bluetooth toggle off and followed by device restart or even the iOS update
The CBCentralManagerDelegate method centralManager(_:didDiscover:advertisementData:rssi:) fails to fire when the application is in the background following a specific sequence of user actions: disconnecting Bluetooth via the iOS Control Center and subsequently restarting the device. Even though the application fully implements both central and peripheral background configurations with the highest level of location authorization "Always Allow" (successfully monitoring nearby beacons) and restore identifier present for both the roles, iOS fails to deliver the discovery callback to the application after a device reboot if Bluetooth was previously decoupled via the Control Center. Feedback ticket created: FB25357552
0
0
48
1d
Can LiveCommunicationKit observe another app's incoming call while the observing app is suspended or terminated?
We are developing an iOS app intended for distribution on the App Store in Japan. Our goal is to alert users on Apple Watch while an incoming call from a third-party VoIP app, such as LINE or Rakuten Link, is still ringing. A critical requirement is detecting the beginning of the incoming call while the iPhone is locked and our app is not actively running in the foreground. Detection only after the call ends would not meet our requirement. We have reviewed these previous discussions: https://developer.apple.com/forums/thread/785105 https://developer.apple.com/forums/thread/849682 We understand that CXCallObserver does not wake a suspended application, and that LiveCommunicationKit's ConversationManager may offer similar call-observation functionality. We would appreciate clarification on two points: 1. Observation and background execution Can ConversationManager.conversations or ConversationManagerDelegate report the beginning of an incoming call belonging to another app while our observing app is suspended? Does the behavior differ when our app has been terminated by the system, rather than suspended? If these APIs cannot deliver events in those states, is there any supported public API that allows our app to be awakened or launched in response to another app's incoming call? 2. Scope and availability Does the call-observation functionality discussed in thread 785105 include calls belonging to other apps, and is it limited to periods when the observing app is executing? For a regular App Store app distributed in Japan, are any special entitlements, app categories, or regional conditions required to use this functionality? We are not attempting to initiate, answer, or manage another app's calls. Our requirement is limited to detecting the incoming ringing state in real time. Thank you for clarifying the supported behavior and limitations.
0
0
21
1d
Rosetta 2: wrong scalar SSE results after x87 fsqrt/fdiv in translated x86_64 code
I'm seeing translated x86_64 code compute wrong floating-point results under Rosetta 2, with no fault raised. Filed as FB25702862. Posting here in case others hit it, and to ask whether anyone can check other macOS versions. Environment: macOS 27.2.1 (26B131), Apple M4 Max, Apple clang 21.0.0. Reproduce // clang -arch x86_64 -O1 -o repro repro.c && ./repro #include <math.h> #include <stdio.h> __attribute__((noinline)) static double f(float a, double v) { double d = a; // cvtss2sd xmm, xmm double r = (double)sqrtl((long double)v); // x87: fld / fsqrt / fstp return r - d; // subsd reads d } int main(void) { volatile float a = 24.0f; volatile double v = 7.9466; printf("got %.17g\n", f(a, v)); printf("expected %.17g\n", sqrt(v) - 24.0); return 0; }Output under Rosetta: got 2.8189714436297506 expected -21.181028556370251Built with -arch arm64 it prints the expected value. -O1, -O2 and -Os all fail the same way. What triggers it Three things in one basic block: A scalar conversion with a register source, such as cvtss2sd xmm0, xmm0 (also cvtsd2ss, sqrtsd, sqrtss, roundsd), where the destination's upper bits are not known to be zero. An x87 fsqrt, fdiv, fprem, fprem1, fptan or fpatan. For fsqrt, operands that are zero, a power of two, negative, infinite or NaN are harmless. A scalar use of the converted register: addsd, subsd, mulsd, divsd, comisd, ucomisd, cvtsd2ss and similar. The smallest sequence I have: cvtss2sd xmm0, xmm0 movsd [rsp-8], xmm1 fld qword ptr [rsp-8] fsqrt fstp qword ptr [rsp-8] xorpd xmm1, xmm1 addsd xmm1, xmm0 ; sees a tiny denormal instead of the converted valueA store of xmm0 at the same point sees the correct value. Zeroing the destination before the conversion, or any jump or call between the three parts, avoids the problem. VEX-encoded forms behave the same. What seems to be happening In the translated code, the conversion result is held in a scratch vector register and read from there again after the x87 helper calls. The runtime's software square root and divide get their starting estimate from the hardware reciprocal-estimate instructions using that same register and don't restore it. The value the program then reads is exactly that estimate: for fsqrt of 7.9466 the low 32 bits are 0x3fb5a000, which is frsqrte(7.9466 / 16) with FPCR.AH set. Who is affected Code from Mono's x64 JIT, including Unity games running under Rosetta. It emits Math.Sqrt as x87 fsqrt and widens float call results with cvtss2sd reg, reg, so an expression like GetRange() < vector.magnitude can evaluate wrongly. That is how I found it. C and C++ that mix long double arithmetic with float/double conversions. For runtime-generated code the fault also depends on placement: if a 4 KB page boundary falls between the conversion and the use, the result is correct. A JIT-compiled program therefore fails on most runs but not all, which made this hard to pin down. Questions Can anyone reproduce this on an older macOS release? I could only test 27.2.1, so I don't know whether it is a regression. Is there a recommended way to avoid x87 helper calls in translated code, short of changing the code generator?
0
0
177
1d
Missing entitlement for API HomeKit error
During a test run of my HomeKit application in Xcode, after some time the app did run smoothly, I've started for one characteristic to get a pretty weird error in the readValueWithCompletionHandler: callback block: Error Domain=HMErrorDomain Code=80 "Missing entitlement for API." UserInfo={NSLocalizedFailureReason=Handler does not support background access, NSLocalizedDescription=Missing entitlement for API.} The application was launched just a couple of hours ago and the profile is still OK (though it will expire very inconveniently soon): 1044 ocs /tmp> security cms -D -i /Users/ocs/Library/Developer/Xcode/DerivedData/HomeObserverNA-hkazqlfbeuucvybpdzdgosyhhxnx/Build/Products/Debug-maccatalyst/HomeObserverNA.app/Contents/embedded.provisionprofile -o /tmp/ppp.plist 1045 ocs /tmp> plutil -extract ExpirationDate raw -o - /tmp/ppp.plist 2026-10-15T14:04:02Z 1046 ocs /tmp> Note please that immediately after launch (and for some time after that) the value was read in through the same code without any problem. Strangely enough, when I've switched the device through the Home application, I've got the update planned through enableNotification:completionHandler: all right. and the error stopped occurring, readValueWithCompletionHandler: from that moment on again works as presumed. How can I fix the problem, what's wrong in my app? Thanks!
26
0
1.1k
2d
AccessoryAccess for a Developer ID virtualization app: can it replace a root daemon for USB storage devices?
I build AVM, the Accessible Virtual Machine, a free, open source Mac app that runs Windows 11 for ARM in QEMU. It's built for blind people who use VoiceOver on the Mac and a screen reader in Windows. It's on GitHub at https://github.com/allisonfm85/accessible-virtual-machine. AVM ships with Developer ID, it's notarized, and it isn't sandboxed. QEMU runs as a child process, signed by the same team, and does the USB work itself through usbredir and libusb. I asked DTS about this (case 23107052), and Quinn pointed me to thread 851767. Today AVM captures USB devices from a root daemon registered with SMAppService. That works for braille displays and microphones. It fails for USB flash drives. Opening interface 0 returns 0xe00002c9. I measured why with a small IOUSBHost tool: Run with sudo from a terminal that has Removable Volumes: works. Same command with Removable Volumes turned off: fails with 0xe00002c9. Run as a launchd daemon in the system domain: fails. Full Disk Access makes no difference. So the block is the Removable Volumes permission, and a daemon has no responsible app to carry it. Granting it to AVM doesn't help the daemon. Thread 851767 shows a flash drive working through AccessoryAccess and IOUSBHostDevice, with interfaces opened through IOUSBLib. That looks like the path I should be on. My questions: Is the Claim USB Accessory capability (com.apple.developer.accessory-access.usb) available to Developer ID apps outside the Mac App Store? Does it require the App Sandbox? Does the user's AccessoryAccess consent cover a USB storage device's interfaces? In other words, would it get past the Removable Volumes check that stops my daemon? Can AVM pass createXPCRepresentation to QEMU, a non-sandboxed child process from the same team, and have QEMU open the accessory there? libusb opens interfaces through IOUSBLib. Given FB25324561, is it reasonable to ship on that path for now? If AccessoryAccess isn't available to Developer ID apps, I'd still welcome guidance on a supported way, such as com.apple.vm.device-access. I'm happy to share my sample project or logs. Thank you, Allison Meloy
2
0
156
2d
Updating an FSKit module to use the new Handler protocols
I have a file system extension that currently uses the various now-deprecated Operations protocols. I have a few questions about moving to the new Handler protocols. First, my module is going to maintain backwards compatibility with macOS Sequoia for the foreseeable future, but I would also like to be able to take advantage of new FSKit features for users who are on newer OS versions. What approach would you recommend: Having an FSVolume conform to both the various Operations and Handler protocols (e.g. both FSVolumeKernelOffloadedIOOperations and FSVolume.KernelOffloadedIOHandler with the latter tagged with @available) an immediate issue I see trying to do this is I run into the error Method 'activate(options:)' with Objective-C selector 'activateWithOptions:replyHandler:' conflicts with previous declaration with the same Objective-C selector when trying to conform to both FSVolume.Handler and FSVolume.Operations. Having two separate FSVolume implementations, one used for older OS versions with Operations support and one used on newer OS versions with Handler support? Keeping the use of pre-existing Operations protocols while only using the Handlers for newer features (e.g. things like SeekRegionHandler) Second, I see at https://developer.apple.com/documentation/fskit/fsvolumehandlerresult/requestedattributes that I must populate all requested attributes. Does this value only have a meaning if the initializer for the actual concrete result type has an initializer that takes in a FSItem.Attributes instance, or is there some way I’m supposed to populate those? (As a concrete example, FSCheckAccessResult has init(accessAllowed:) which doesn’t take in any attributes.)
6
0
975
4d
"IOSurface creation failed" drawing to CGContext
(more details on StackOverflow) I'm getting messages like the following, SOMETIMES, when I draw to a CGContext IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5207703552; IOSurfaceAllocSize = 9461418; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } call to context.draw(): context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) The results are just fine, so the draw seems to be working. It also, most often, draws without producing this error, but it fails pretty often. I'm not sure where to begin looking to sort out what I might need to do differently to avoid this error message in the console. Complete code: import Foundation import SwiftUI func generateSpritesImage(thumbPhotos: [Photo], width: Int, filename: URL) -> [Int] { var indices = [Int]() let totalHeight = thumbPhotos.reduce(0) { $0 + $1.heightOfImage(ofWidth: width) } debugPrint("creating context") let context = CGContext(data: nil, width: width, height: totalHeight, bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpace(name: CGColorSpace.sRGB)!, bitmapInfo: CGImageAlphaInfo.noneSkipLast.rawValue)! var top = totalHeight for photo in thumbPhotos { let height = photo.heightOfImage(ofWidth: width) indices.append(top - totalHeight) top -= height debugPrint("drawing \(photo.filteredFileURL())") context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) } debugPrint("write jpeg") writeJpegFromContext(context: context, filename: filename) return indices } func writeJpegFromContext(context: CGContext, filename: URL) { let cgImage = context.makeImage()! let bitmapRep = NSBitmapImageRep(cgImage: cgImage) let jpegData = bitmapRep.representation(using: NSBitmapImageRep.FileType.jpeg, properties: [:])! try! jpegData.write(to: filename) } sample of output: "drawing 0002-_MG_8542.jpg" "drawing 0003-_MG_8545.jpg" "drawing 0004-_MG_8550.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5211357184; IOSurfaceAllocSize = 9983331; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0005-_MG_8555.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5221351424; IOSurfaceAllocSize = 10041215; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0006-_MG_8562.jpg" "drawing 0007-_MG_8563.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5376163840; IOSurfaceAllocSize = 10109756; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0008-_MG_8584.jpg" "drawing 0009-_MG_8618.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5394612224; IOSurfaceAllocSize = 8425564; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0010-_MG_8627.jpg" "drawing 0011-_MG_8649.jpg" "drawing 0012-_MG_8658.jpg" "drawing 0013-_MG_8665.jpg" "drawing 0014-_MG_8677.jpg" "drawing 0015-_MG_8675.jpg" "drawing 0016-_MG_8676.jpg" "drawing 0017-IMGP0873.jpg" "drawing 0018-_MG_8719.jpg" "drawing 0019-_MG_8743.jpg" ...
4
1
2.9k
5d
macOS: pre-established stop mechanism when a VM supervisor stops progressing
I am evaluating a bounded workload host using Virtualization.framework on Apple silicon. This is a question about supported architecture and API contracts, not a report of a reproduced bug. No particular macOS release has yet been qualified for this design; please identify the releases and prerequisites to which an answer applies. I have read the discussions about cleanup after the VM-owning application terminates: https://developer.apple.com/forums/thread/848542 https://developer.apple.com/forums/thread/850709 I understand that this cleanup is different from an externally observable, time-bounded teardown guarantee. I am not asking again for a replacement application's handle to a VM whose owner has already died. The unresolved case is different: A host application owns a VM, but its serial VM-control queue is no longer progressing. A separate supervisor is intended to initiate the fallback stop action against that application. An external stop trigger occurs. The supervisor is then lost or stops progressing before it enters the signal operation; the VM-owning application remains alive. Loss of the supervisor role does not necessarily mean that its process has exited, so a process-exit notification cannot be assumed. Complete host or kernel failure is not part of this scenario. Is there a supported public mechanism that can be established before workload preparation and retain authority to act on the same target application after this loss, without requiring another action by the supervisor or progress on the VM-control queue? For any such mechanism, I would particularly appreciate clarification of: How its authority is bound to the intended target during incomplete setup, including process creation that has begun but has not returned a usable target identity. Assuming an already-running watchdog leaves this setup boundary unanswered. Which actor performs the remaining action when the supervisor cannot, and what lifecycle, privilege and progress assumptions that actor requires. Whether any documented progress bound applies when a required operation does not return. The design requirement is completion of the whole prescribed stop/escalation attempt, including required failure-handling steps, within 10 seconds of the same first external trigger. Starting a timer or entering a signal call is not equivalent to completing that attempt. This is not a request for unconditional successful process or VM termination. A supported narrower mechanism, or an explicit statement that macOS provides no such contract for this case, would also be useful. I am looking for public interfaces and their documented limits, not private helper-process identities or kernel implementation details. Thank you.
8
0
132
5d
Kernel panic in EXDisplayPipeService.swift:472 (Exclaves) when the mic or camera turns on during Mac Virtual Display on Vision Pro
My MacBook Pro panics and restarts every time an app turns on the microphone or the camera while I am using the Mac through Mac Virtual Display on Apple Vision Pro. It has never happened on the Mac's own screen. Eight panics on November 20, eight out of eight attempts in this setup. Every report has the same string. Only the "actual" number and the type change: panic(cpu 7 caller 0xfffffe004ecb4010): [Exclaves] $JgEXDisplayPipeDriverT605XComponent.EXDisplayPipeComponent.ini:EXDisplayPipeDriverKitT605X/EXDisplayPipeService.swift:472: Fatal error: actual: 1100,expected: 3000,type: MIC,error: 0x2000000 at PC: 0x8021020, LR: 0x8020db8The eight panics: 09:00 type MIC actual 1908 09:06 type MIC actual 2015 09:12 type MIC actual 1114 09:18 type MIC actual 2801 10:04 type CAM actual 77 10:31 type CAM actual 1414 11:12 type CAM actual 2845 11:30 type MIC actual 1100Setup: MacBook Pro (Mac17,10), Apple M5 Max, 128 GB macOS 27.2.1 (26B8132), xnu-13432.41.4~62/RELEASE_ARM64_T6050 Apple Vision Pro, visionOS [VERSION] Lid open. With Mac Virtual Display running the built-in screen goes dark, and System Information lists a single display: "Sidecar Display", 6720 x 2880, AirPlay, virtual, main. The built-in panel is not in the list. Steps: Put on Vision Pro and start Mac Virtual Display. Open anything that uses the microphone or camera. The Mac panics and restarts within a few seconds. The app does not seem to matter. The first four panics came while joining Microsoft Teams calls, and the three CAM panics came when a camera preview started (one was just opening Teams Settings > Devices). The eighth came from a different app that only records audio through AVAudioEngine on the built-in microphone, with no call running on the Mac at all. My guess, and it is only a guess: this driver draws the secure microphone and camera indicator on the built-in panel, the check at line 472 wants the indicator shown for 3000 of something, and with the built-in panel off it cannot get there. I would expect the capture to be refused, or the indicator to move to the active display, before a panic. Filed as FB25658677 with all the panic reports attached. Two questions: Is anyone else seeing this panic string, with or without a Vision Pro? I could not find it anywhere. Does anyone know whether an external microphone (USB or AirPods) takes a different path that avoids this driver? I have not tested it, since a wrong guess costs a restart.
0
0
85
5d
macOS 27: supported ACL absence and enumeration semantics
I am designing a fail-closed filesystem ACL verifier and would appreciate clarification of the supported public API contract. The observed environment is macOS 27.0, build 26A428, on Apple silicon. Disk Utility identifies the Data volume mounted at /System/Volumes/Data as APFS (Encrypted). Finder shows Xcode 27.2, and Xcode displays a built-in macOS 27.2 component. The exact SDK build and the SDK to be used for validation remain unconfirmed. I am considering acl_get_fd_np with ACL_TYPE_EXTENDED and acl_get_entry. Could someone clarify: How can a caller distinguish an absent ACL, a valid zero-entry ACL, and failed or unavailable ACL retrieval on an existing object? Under what documented conditions, if any, does a NULL result with ENOENT establish that an ACL is absent? How can a caller recognise valid enumeration completion without confusing it with invalid ACL state or another EINVAL failure? Is there a supported descriptor-bound public API or documented sequence for making these distinctions? How should omitted security attributes and truncated attribute buffers be interpreted? Which of these guarantees depend on the macOS build, SDK version, or filesystem? What guarantees apply to object identity and concurrent changes between reading ACL evidence and a later operation? I intend to classify ambiguous evidence as indeterminate and do not intend to modify ACLs on assessed objects. Thank you.
0
0
52
5d
Which macOS version first exports Logger.isEnabled(type:)?
An app built with Xcode 27.1 for a macOS 15 deployment target called Logger.isEnabled(type:). In the SDK's swiftinterface the method sits under Logger's @available(macOS 11.0, ...) with no availability of its own, so it compiled without a warning. On macOS 15.6.1, libswiftos.dylib doesn't export it, and dyld stopped the app at launch: Symbol not found: _$s2os6LoggerV9isEnabled4typeSbSo0a5_log_E2_ta_tF Expected in: /usr/lib/swift/libswiftos.dylibThe macOS 15.5 SDK's libswiftos.tbd doesn't list the symbol and the 27 SDK does. I haven't checked macOS 26. Switching to OSLog.isEnabled(type:) fixed it. Which macOS version first exports this symbol? Write-up: https://yardlet.app/blog/logger-isenabled-macos-15.html
4
0
123
5d
Which memory entitlements can an independent iOS developer use?
I'm researching the memory limits and capabilities available to ordinary third-party iOS applications. My project, Kairavox, is a native iOS application whose initial CPU design uses a software AArch64 interpreter. Its long-term goal is to run a genuine, unmodified iPadOS installation as a guest. Before making further architectural decisions, I want to understand what memory capabilities are actually available to independent developers. Our initial guest research target is an iPad 9th generation running iPadOS 27.2.1. The host iPhone model has not yet been fixed. I've found Apple's documentation for: Increased Memory Limit, with the key com.apple.developer.kernel.increased-memory-limit. Extended Virtual Addressing, with the key com.apple.developer.kernel.extended-virtual-addressing. Increased Debugging Memory Limit, which Apple describes as providing additional memory during development and internal testing. I'd appreciate clarification on the following for current iOS versions: Which iPhone models and iOS versions support each of these capabilities? Is there a public compatibility list? Can an independent developer request the Increased Memory Limit entitlement? If so, what is the current request and provisioning-profile process? Does Extended Virtual Addressing increase only address-space capacity, or can it also raise an app's physical-memory limit? What is the exact entitlement key for Increased Debugging Memory Limit, and what are its limits for development, ad hoc, and internal TestFlight builds? Are any of these capabilities available with free Personal Team signing? Does paid Apple Developer Program membership change eligibility, or is separate authorization required? If granted, may an app use additional available memory as backing for software-emulated guest RAM? Are there documented limits or workload restrictions? I understand that an entitlement would not reserve physical RAM or prevent memory pressure and termination. Apple's current iOS supported-capabilities table lists Extended Virtual Addressing and Increased Debugging Memory Limit, but I could not find Increased Memory Limit there. Is that table complete for this capability, or does availability depend on the device, account, or another process? I'm not assuming these entitlements are available to every developer. Documentation or specific eligibility guidance would be very helpful. Thank you.
1
0
72
5d
Is JIT execution possible for ordinary third-party iOS apps?
I'm researching whether a normally signed third-party iOS application can use Just-In-Time (JIT) compilation on a stock, unjailbroken iPhone. My project, Kairavox, aims to run a genuine, unmodified iPadOS installation as a guest inside a native iOS application. JIT compilation is central to our intended execution architecture: we want to translate and execute guest AArch64 instructions through dynamically generated native code. We intend to test through personal development signing and sideloading using AltStore or SideStore. App Store distribution is not a requirement. I've found Apple's documentation for: Allow Execution of Just-In-Time (JIT) Compiled Code Entitlement Porting Just-In-Time Compilers to Apple Silicon Alternative Browser Engines in the European Union However, the first two appear to concern the macOS Hardened Runtime context. Apple's alternative browser engine provisions also describe a specifically authorized exception, which does not describe our application. I'd appreciate clarification on what is supported for an ordinary third-party iOS app: Is there a documented iOS API or entitlement that allows a normally signed third-party app to allocate writable memory, generate machine code, and execute that code at runtime? Does iOS support MAP_JIT for ordinary third-party applications, or is it restricted to other Apple platforms or specially authorized applications? Is com.apple.security.cs.allow-jit exclusively a macOS Hardened Runtime entitlement, or does it have any application on iOS? Can an app using free Personal Team development signing execute JIT-generated code? Does paid Apple Developer Program membership change this? Do development, ad hoc, or other signing arrangements differ in their JIT permissions? Is there a documented process for an independent developer to request the necessary capability? Does installing an app through AltStore or SideStore change its OS-granted executable-memory permissions, or does it retain the permissions associated with its signed build? Are there any documented restrictions on using JIT-generated native code for CPU emulation or virtualization workloads? I understand that Apple's EU alternative-browser-engine authorization is a narrow exception for eligible browser applications. I'm not assuming it applies to Kairavox. The main question is whether an independent developer can build and test a JIT-based application on a stock iPhone using an officially supported signing and permission model. Thank you.
1
0
72
5d
Improve PTT System UI Visibility When Location Indicators Are Active
Observed Limitation When location services are active, the iOS location indicator may overlap with or hide the PTT blue button or system UI in the notch / Dynamic Island area. Requested Changes Ensure PTT controls remain visible and accessible when location indicators are displayed. Improve system UI positioning to prevent conflicts with other system indicators.
1
0
47
6d
Core OS Resources
General: DevForums subtopic: App & System Services > Core OS Core OS is a catch-all subtopic for low-level APIs that don’t fall into one of these more specific areas: Processes & Concurrency Resources Files and Storage Resources Networking Resources Network Extension Resources Security Resources Virtualization Resources Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = "eskimo" + "1" + "@" + "apple.com"
Replies
0
Boosts
0
Views
2.2k
Activity
Aug ’25
Endpoint Security: pending AUTH_CREATE and new operations after the last client disappears
I am reviewing the supported Endpoint Security API contract for a design targeting macOS 27.2. I have not activated an Endpoint Security extension or reproduced this scenario. This is a question about documented API behavior. In “Build an Endpoint Security app” at WWDC20, Apple explains that Endpoint Security applies an implicit allow result when no clients are subscribed to an event’s AUTH variant. The current documentation for es_set_deadline_miss_mode describes handling missed authorization deadlines. It also documents denial when an AUTH message is dropped because the queue of a client configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED is full. Consider a single client created with es_new_client, subscribed to ES_EVENT_TYPE_AUTH_CREATE, and configured with ES_DEADLINE_MISS_MODE_FAIL_CLOSED. What supported behavior applies in these two situations? An AUTH_CREATE request has already been delivered and remains unanswered when the client crashes, disconnects, is destroyed with es_delete_client, or unsubscribes while remaining connected. How is that pending request resolved? Please distinguish these cases if their behavior differs. A new, otherwise permitted creation is attempted while no client is subscribed to AUTH_CREATE. Does the implicit-allow rule described at WWDC20 still apply on macOS 27.2, regardless of the previous client’s FAIL_CLOSED setting? We need to determine whether the design requires an independent control during the interval without a subscribed client. References to the supported contract, applicable versions, and conditions would be very helpful. References: https://developer.apple.com/videos/play/wwdc2020/10159/ https://developer.apple.com/documentation/endpointsecurity/es_set_deadline_miss_mode(_:_:) https://developer.apple.com/documentation/endpointsecurity/es_delete_client(_:) https://developer.apple.com/documentation/endpointsecurity/es_unsubscribe_all(_:)
Replies
0
Boosts
0
Views
101
Activity
22h
Virtualization.framework — stop completion and storage release
Hello Apple Developer Support, We are evaluating a macOS VM controller using VZVirtualMachine and would appreciate clarification: Does stop(completionHandler:) have any documented maximum completion time? What should a controller do if completion never arrives? After successful completion, are all backend writes finished and disk-image resources released, or is additional teardown required? What documented sequence establishes that the VM’s complete writable storage set—including disk images and macOS auxiliary storage—can safely be deleted, replaced or restored? Do these guarantees depend on caching/synchronization mode or macOS version? We understand that forced stop does not guarantee a clean guest shutdown or application consistency. Our question concerns host-side storage quiescence and resource release. Documentation references would be helpful. Thank you.
Replies
1
Boosts
0
Views
113
Activity
1d
Core Bluetooth centralManager(_:didDiscover:advertisementData:rssi:) not triggered in background after Control Center Bluetooth toggle off and followed by device restart or even the iOS update
The CBCentralManagerDelegate method centralManager(_:didDiscover:advertisementData:rssi:) fails to fire when the application is in the background following a specific sequence of user actions: disconnecting Bluetooth via the iOS Control Center and subsequently restarting the device. Even though the application fully implements both central and peripheral background configurations with the highest level of location authorization "Always Allow" (successfully monitoring nearby beacons) and restore identifier present for both the roles, iOS fails to deliver the discovery callback to the application after a device reboot if Bluetooth was previously decoupled via the Control Center. Feedback ticket created: FB25357552
Replies
0
Boosts
0
Views
48
Activity
1d
Can LiveCommunicationKit observe another app's incoming call while the observing app is suspended or terminated?
We are developing an iOS app intended for distribution on the App Store in Japan. Our goal is to alert users on Apple Watch while an incoming call from a third-party VoIP app, such as LINE or Rakuten Link, is still ringing. A critical requirement is detecting the beginning of the incoming call while the iPhone is locked and our app is not actively running in the foreground. Detection only after the call ends would not meet our requirement. We have reviewed these previous discussions: https://developer.apple.com/forums/thread/785105 https://developer.apple.com/forums/thread/849682 We understand that CXCallObserver does not wake a suspended application, and that LiveCommunicationKit's ConversationManager may offer similar call-observation functionality. We would appreciate clarification on two points: 1. Observation and background execution Can ConversationManager.conversations or ConversationManagerDelegate report the beginning of an incoming call belonging to another app while our observing app is suspended? Does the behavior differ when our app has been terminated by the system, rather than suspended? If these APIs cannot deliver events in those states, is there any supported public API that allows our app to be awakened or launched in response to another app's incoming call? 2. Scope and availability Does the call-observation functionality discussed in thread 785105 include calls belonging to other apps, and is it limited to periods when the observing app is executing? For a regular App Store app distributed in Japan, are any special entitlements, app categories, or regional conditions required to use this functionality? We are not attempting to initiate, answer, or manage another app's calls. Our requirement is limited to detecting the incoming ringing state in real time. Thank you for clarifying the supported behavior and limitations.
Replies
0
Boosts
0
Views
21
Activity
1d
Rosetta 2: wrong scalar SSE results after x87 fsqrt/fdiv in translated x86_64 code
I'm seeing translated x86_64 code compute wrong floating-point results under Rosetta 2, with no fault raised. Filed as FB25702862. Posting here in case others hit it, and to ask whether anyone can check other macOS versions. Environment: macOS 27.2.1 (26B131), Apple M4 Max, Apple clang 21.0.0. Reproduce // clang -arch x86_64 -O1 -o repro repro.c && ./repro #include <math.h> #include <stdio.h> __attribute__((noinline)) static double f(float a, double v) { double d = a; // cvtss2sd xmm, xmm double r = (double)sqrtl((long double)v); // x87: fld / fsqrt / fstp return r - d; // subsd reads d } int main(void) { volatile float a = 24.0f; volatile double v = 7.9466; printf("got %.17g\n", f(a, v)); printf("expected %.17g\n", sqrt(v) - 24.0); return 0; }Output under Rosetta: got 2.8189714436297506 expected -21.181028556370251Built with -arch arm64 it prints the expected value. -O1, -O2 and -Os all fail the same way. What triggers it Three things in one basic block: A scalar conversion with a register source, such as cvtss2sd xmm0, xmm0 (also cvtsd2ss, sqrtsd, sqrtss, roundsd), where the destination's upper bits are not known to be zero. An x87 fsqrt, fdiv, fprem, fprem1, fptan or fpatan. For fsqrt, operands that are zero, a power of two, negative, infinite or NaN are harmless. A scalar use of the converted register: addsd, subsd, mulsd, divsd, comisd, ucomisd, cvtsd2ss and similar. The smallest sequence I have: cvtss2sd xmm0, xmm0 movsd [rsp-8], xmm1 fld qword ptr [rsp-8] fsqrt fstp qword ptr [rsp-8] xorpd xmm1, xmm1 addsd xmm1, xmm0 ; sees a tiny denormal instead of the converted valueA store of xmm0 at the same point sees the correct value. Zeroing the destination before the conversion, or any jump or call between the three parts, avoids the problem. VEX-encoded forms behave the same. What seems to be happening In the translated code, the conversion result is held in a scratch vector register and read from there again after the x87 helper calls. The runtime's software square root and divide get their starting estimate from the hardware reciprocal-estimate instructions using that same register and don't restore it. The value the program then reads is exactly that estimate: for fsqrt of 7.9466 the low 32 bits are 0x3fb5a000, which is frsqrte(7.9466 / 16) with FPCR.AH set. Who is affected Code from Mono's x64 JIT, including Unity games running under Rosetta. It emits Math.Sqrt as x87 fsqrt and widens float call results with cvtss2sd reg, reg, so an expression like GetRange() < vector.magnitude can evaluate wrongly. That is how I found it. C and C++ that mix long double arithmetic with float/double conversions. For runtime-generated code the fault also depends on placement: if a 4 KB page boundary falls between the conversion and the use, the result is correct. A JIT-compiled program therefore fails on most runs but not all, which made this hard to pin down. Questions Can anyone reproduce this on an older macOS release? I could only test 27.2.1, so I don't know whether it is a regression. Is there a recommended way to avoid x87 helper calls in translated code, short of changing the code generator?
Replies
0
Boosts
0
Views
177
Activity
1d
Missing entitlement for API HomeKit error
During a test run of my HomeKit application in Xcode, after some time the app did run smoothly, I've started for one characteristic to get a pretty weird error in the readValueWithCompletionHandler: callback block: Error Domain=HMErrorDomain Code=80 "Missing entitlement for API." UserInfo={NSLocalizedFailureReason=Handler does not support background access, NSLocalizedDescription=Missing entitlement for API.} The application was launched just a couple of hours ago and the profile is still OK (though it will expire very inconveniently soon): 1044 ocs /tmp> security cms -D -i /Users/ocs/Library/Developer/Xcode/DerivedData/HomeObserverNA-hkazqlfbeuucvybpdzdgosyhhxnx/Build/Products/Debug-maccatalyst/HomeObserverNA.app/Contents/embedded.provisionprofile -o /tmp/ppp.plist 1045 ocs /tmp> plutil -extract ExpirationDate raw -o - /tmp/ppp.plist 2026-10-15T14:04:02Z 1046 ocs /tmp> Note please that immediately after launch (and for some time after that) the value was read in through the same code without any problem. Strangely enough, when I've switched the device through the Home application, I've got the update planned through enableNotification:completionHandler: all right. and the error stopped occurring, readValueWithCompletionHandler: from that moment on again works as presumed. How can I fix the problem, what's wrong in my app? Thanks!
Replies
26
Boosts
0
Views
1.1k
Activity
2d
AccessoryAccess for a Developer ID virtualization app: can it replace a root daemon for USB storage devices?
I build AVM, the Accessible Virtual Machine, a free, open source Mac app that runs Windows 11 for ARM in QEMU. It's built for blind people who use VoiceOver on the Mac and a screen reader in Windows. It's on GitHub at https://github.com/allisonfm85/accessible-virtual-machine. AVM ships with Developer ID, it's notarized, and it isn't sandboxed. QEMU runs as a child process, signed by the same team, and does the USB work itself through usbredir and libusb. I asked DTS about this (case 23107052), and Quinn pointed me to thread 851767. Today AVM captures USB devices from a root daemon registered with SMAppService. That works for braille displays and microphones. It fails for USB flash drives. Opening interface 0 returns 0xe00002c9. I measured why with a small IOUSBHost tool: Run with sudo from a terminal that has Removable Volumes: works. Same command with Removable Volumes turned off: fails with 0xe00002c9. Run as a launchd daemon in the system domain: fails. Full Disk Access makes no difference. So the block is the Removable Volumes permission, and a daemon has no responsible app to carry it. Granting it to AVM doesn't help the daemon. Thread 851767 shows a flash drive working through AccessoryAccess and IOUSBHostDevice, with interfaces opened through IOUSBLib. That looks like the path I should be on. My questions: Is the Claim USB Accessory capability (com.apple.developer.accessory-access.usb) available to Developer ID apps outside the Mac App Store? Does it require the App Sandbox? Does the user's AccessoryAccess consent cover a USB storage device's interfaces? In other words, would it get past the Removable Volumes check that stops my daemon? Can AVM pass createXPCRepresentation to QEMU, a non-sandboxed child process from the same team, and have QEMU open the accessory there? libusb opens interfaces through IOUSBLib. Given FB25324561, is it reasonable to ship on that path for now? If AccessoryAccess isn't available to Developer ID apps, I'd still welcome guidance on a supported way, such as com.apple.vm.device-access. I'm happy to share my sample project or logs. Thank you, Allison Meloy
Replies
2
Boosts
0
Views
156
Activity
2d
Updating an FSKit module to use the new Handler protocols
I have a file system extension that currently uses the various now-deprecated Operations protocols. I have a few questions about moving to the new Handler protocols. First, my module is going to maintain backwards compatibility with macOS Sequoia for the foreseeable future, but I would also like to be able to take advantage of new FSKit features for users who are on newer OS versions. What approach would you recommend: Having an FSVolume conform to both the various Operations and Handler protocols (e.g. both FSVolumeKernelOffloadedIOOperations and FSVolume.KernelOffloadedIOHandler with the latter tagged with @available) an immediate issue I see trying to do this is I run into the error Method 'activate(options:)' with Objective-C selector 'activateWithOptions:replyHandler:' conflicts with previous declaration with the same Objective-C selector when trying to conform to both FSVolume.Handler and FSVolume.Operations. Having two separate FSVolume implementations, one used for older OS versions with Operations support and one used on newer OS versions with Handler support? Keeping the use of pre-existing Operations protocols while only using the Handlers for newer features (e.g. things like SeekRegionHandler) Second, I see at https://developer.apple.com/documentation/fskit/fsvolumehandlerresult/requestedattributes that I must populate all requested attributes. Does this value only have a meaning if the initializer for the actual concrete result type has an initializer that takes in a FSItem.Attributes instance, or is there some way I’m supposed to populate those? (As a concrete example, FSCheckAccessResult has init(accessAllowed:) which doesn’t take in any attributes.)
Replies
6
Boosts
0
Views
975
Activity
4d
"IOSurface creation failed" drawing to CGContext
(more details on StackOverflow) I'm getting messages like the following, SOMETIMES, when I draw to a CGContext IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5207703552; IOSurfaceAllocSize = 9461418; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } call to context.draw(): context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) The results are just fine, so the draw seems to be working. It also, most often, draws without producing this error, but it fails pretty often. I'm not sure where to begin looking to sort out what I might need to do differently to avoid this error message in the console. Complete code: import Foundation import SwiftUI func generateSpritesImage(thumbPhotos: [Photo], width: Int, filename: URL) -> [Int] { var indices = [Int]() let totalHeight = thumbPhotos.reduce(0) { $0 + $1.heightOfImage(ofWidth: width) } debugPrint("creating context") let context = CGContext(data: nil, width: width, height: totalHeight, bitsPerComponent: 8, bytesPerRow: 0, space: CGColorSpace(name: CGColorSpace.sRGB)!, bitmapInfo: CGImageAlphaInfo.noneSkipLast.rawValue)! var top = totalHeight for photo in thumbPhotos { let height = photo.heightOfImage(ofWidth: width) indices.append(top - totalHeight) top -= height debugPrint("drawing \(photo.filteredFileURL())") context.draw(photo.image, in: CGRect(x: 0, y: top, width: width, height: height), byTiling: false) } debugPrint("write jpeg") writeJpegFromContext(context: context, filename: filename) return indices } func writeJpegFromContext(context: CGContext, filename: URL) { let cgImage = context.makeImage()! let bitmapRep = NSBitmapImageRep(cgImage: cgImage) let jpegData = bitmapRep.representation(using: NSBitmapImageRep.FileType.jpeg, properties: [:])! try! jpegData.write(to: filename) } sample of output: "drawing 0002-_MG_8542.jpg" "drawing 0003-_MG_8545.jpg" "drawing 0004-_MG_8550.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5211357184; IOSurfaceAllocSize = 9983331; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0005-_MG_8555.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5221351424; IOSurfaceAllocSize = 10041215; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0006-_MG_8562.jpg" "drawing 0007-_MG_8563.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5376163840; IOSurfaceAllocSize = 10109756; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0008-_MG_8584.jpg" "drawing 0009-_MG_8618.jpg" IOSurface creation failed: e00002c2 parentID: 00000000 properties: { IOSurfaceAddress = 5394612224; IOSurfaceAllocSize = 8425564; IOSurfaceCacheMode = 0; IOSurfaceName = CMPhoto; IOSurfacePixelFormat = 1246774599; } "drawing 0010-_MG_8627.jpg" "drawing 0011-_MG_8649.jpg" "drawing 0012-_MG_8658.jpg" "drawing 0013-_MG_8665.jpg" "drawing 0014-_MG_8677.jpg" "drawing 0015-_MG_8675.jpg" "drawing 0016-_MG_8676.jpg" "drawing 0017-IMGP0873.jpg" "drawing 0018-_MG_8719.jpg" "drawing 0019-_MG_8743.jpg" ...
Replies
4
Boosts
1
Views
2.9k
Activity
5d
macOS: pre-established stop mechanism when a VM supervisor stops progressing
I am evaluating a bounded workload host using Virtualization.framework on Apple silicon. This is a question about supported architecture and API contracts, not a report of a reproduced bug. No particular macOS release has yet been qualified for this design; please identify the releases and prerequisites to which an answer applies. I have read the discussions about cleanup after the VM-owning application terminates: https://developer.apple.com/forums/thread/848542 https://developer.apple.com/forums/thread/850709 I understand that this cleanup is different from an externally observable, time-bounded teardown guarantee. I am not asking again for a replacement application's handle to a VM whose owner has already died. The unresolved case is different: A host application owns a VM, but its serial VM-control queue is no longer progressing. A separate supervisor is intended to initiate the fallback stop action against that application. An external stop trigger occurs. The supervisor is then lost or stops progressing before it enters the signal operation; the VM-owning application remains alive. Loss of the supervisor role does not necessarily mean that its process has exited, so a process-exit notification cannot be assumed. Complete host or kernel failure is not part of this scenario. Is there a supported public mechanism that can be established before workload preparation and retain authority to act on the same target application after this loss, without requiring another action by the supervisor or progress on the VM-control queue? For any such mechanism, I would particularly appreciate clarification of: How its authority is bound to the intended target during incomplete setup, including process creation that has begun but has not returned a usable target identity. Assuming an already-running watchdog leaves this setup boundary unanswered. Which actor performs the remaining action when the supervisor cannot, and what lifecycle, privilege and progress assumptions that actor requires. Whether any documented progress bound applies when a required operation does not return. The design requirement is completion of the whole prescribed stop/escalation attempt, including required failure-handling steps, within 10 seconds of the same first external trigger. Starting a timer or entering a signal call is not equivalent to completing that attempt. This is not a request for unconditional successful process or VM termination. A supported narrower mechanism, or an explicit statement that macOS provides no such contract for this case, would also be useful. I am looking for public interfaces and their documented limits, not private helper-process identities or kernel implementation details. Thank you.
Replies
8
Boosts
0
Views
132
Activity
5d
Kernel panic in EXDisplayPipeService.swift:472 (Exclaves) when the mic or camera turns on during Mac Virtual Display on Vision Pro
My MacBook Pro panics and restarts every time an app turns on the microphone or the camera while I am using the Mac through Mac Virtual Display on Apple Vision Pro. It has never happened on the Mac's own screen. Eight panics on November 20, eight out of eight attempts in this setup. Every report has the same string. Only the "actual" number and the type change: panic(cpu 7 caller 0xfffffe004ecb4010): [Exclaves] $JgEXDisplayPipeDriverT605XComponent.EXDisplayPipeComponent.ini:EXDisplayPipeDriverKitT605X/EXDisplayPipeService.swift:472: Fatal error: actual: 1100,expected: 3000,type: MIC,error: 0x2000000 at PC: 0x8021020, LR: 0x8020db8The eight panics: 09:00 type MIC actual 1908 09:06 type MIC actual 2015 09:12 type MIC actual 1114 09:18 type MIC actual 2801 10:04 type CAM actual 77 10:31 type CAM actual 1414 11:12 type CAM actual 2845 11:30 type MIC actual 1100Setup: MacBook Pro (Mac17,10), Apple M5 Max, 128 GB macOS 27.2.1 (26B8132), xnu-13432.41.4~62/RELEASE_ARM64_T6050 Apple Vision Pro, visionOS [VERSION] Lid open. With Mac Virtual Display running the built-in screen goes dark, and System Information lists a single display: "Sidecar Display", 6720 x 2880, AirPlay, virtual, main. The built-in panel is not in the list. Steps: Put on Vision Pro and start Mac Virtual Display. Open anything that uses the microphone or camera. The Mac panics and restarts within a few seconds. The app does not seem to matter. The first four panics came while joining Microsoft Teams calls, and the three CAM panics came when a camera preview started (one was just opening Teams Settings > Devices). The eighth came from a different app that only records audio through AVAudioEngine on the built-in microphone, with no call running on the Mac at all. My guess, and it is only a guess: this driver draws the secure microphone and camera indicator on the built-in panel, the check at line 472 wants the indicator shown for 3000 of something, and with the built-in panel off it cannot get there. I would expect the capture to be refused, or the indicator to move to the active display, before a panic. Filed as FB25658677 with all the panic reports attached. Two questions: Is anyone else seeing this panic string, with or without a Vision Pro? I could not find it anywhere. Does anyone know whether an external microphone (USB or AirPods) takes a different path that avoids this driver? I have not tested it, since a wrong guess costs a restart.
Replies
0
Boosts
0
Views
85
Activity
5d
macOS 27: supported ACL absence and enumeration semantics
I am designing a fail-closed filesystem ACL verifier and would appreciate clarification of the supported public API contract. The observed environment is macOS 27.0, build 26A428, on Apple silicon. Disk Utility identifies the Data volume mounted at /System/Volumes/Data as APFS (Encrypted). Finder shows Xcode 27.2, and Xcode displays a built-in macOS 27.2 component. The exact SDK build and the SDK to be used for validation remain unconfirmed. I am considering acl_get_fd_np with ACL_TYPE_EXTENDED and acl_get_entry. Could someone clarify: How can a caller distinguish an absent ACL, a valid zero-entry ACL, and failed or unavailable ACL retrieval on an existing object? Under what documented conditions, if any, does a NULL result with ENOENT establish that an ACL is absent? How can a caller recognise valid enumeration completion without confusing it with invalid ACL state or another EINVAL failure? Is there a supported descriptor-bound public API or documented sequence for making these distinctions? How should omitted security attributes and truncated attribute buffers be interpreted? Which of these guarantees depend on the macOS build, SDK version, or filesystem? What guarantees apply to object identity and concurrent changes between reading ACL evidence and a later operation? I intend to classify ambiguous evidence as indeterminate and do not intend to modify ACLs on assessed objects. Thank you.
Replies
0
Boosts
0
Views
52
Activity
5d
Which macOS version first exports Logger.isEnabled(type:)?
An app built with Xcode 27.1 for a macOS 15 deployment target called Logger.isEnabled(type:). In the SDK's swiftinterface the method sits under Logger's @available(macOS 11.0, ...) with no availability of its own, so it compiled without a warning. On macOS 15.6.1, libswiftos.dylib doesn't export it, and dyld stopped the app at launch: Symbol not found: _$s2os6LoggerV9isEnabled4typeSbSo0a5_log_E2_ta_tF Expected in: /usr/lib/swift/libswiftos.dylibThe macOS 15.5 SDK's libswiftos.tbd doesn't list the symbol and the 27 SDK does. I haven't checked macOS 26. Switching to OSLog.isEnabled(type:) fixed it. Which macOS version first exports this symbol? Write-up: https://yardlet.app/blog/logger-isenabled-macos-15.html
Replies
4
Boosts
0
Views
123
Activity
5d
Which memory entitlements can an independent iOS developer use?
I'm researching the memory limits and capabilities available to ordinary third-party iOS applications. My project, Kairavox, is a native iOS application whose initial CPU design uses a software AArch64 interpreter. Its long-term goal is to run a genuine, unmodified iPadOS installation as a guest. Before making further architectural decisions, I want to understand what memory capabilities are actually available to independent developers. Our initial guest research target is an iPad 9th generation running iPadOS 27.2.1. The host iPhone model has not yet been fixed. I've found Apple's documentation for: Increased Memory Limit, with the key com.apple.developer.kernel.increased-memory-limit. Extended Virtual Addressing, with the key com.apple.developer.kernel.extended-virtual-addressing. Increased Debugging Memory Limit, which Apple describes as providing additional memory during development and internal testing. I'd appreciate clarification on the following for current iOS versions: Which iPhone models and iOS versions support each of these capabilities? Is there a public compatibility list? Can an independent developer request the Increased Memory Limit entitlement? If so, what is the current request and provisioning-profile process? Does Extended Virtual Addressing increase only address-space capacity, or can it also raise an app's physical-memory limit? What is the exact entitlement key for Increased Debugging Memory Limit, and what are its limits for development, ad hoc, and internal TestFlight builds? Are any of these capabilities available with free Personal Team signing? Does paid Apple Developer Program membership change eligibility, or is separate authorization required? If granted, may an app use additional available memory as backing for software-emulated guest RAM? Are there documented limits or workload restrictions? I understand that an entitlement would not reserve physical RAM or prevent memory pressure and termination. Apple's current iOS supported-capabilities table lists Extended Virtual Addressing and Increased Debugging Memory Limit, but I could not find Increased Memory Limit there. Is that table complete for this capability, or does availability depend on the device, account, or another process? I'm not assuming these entitlements are available to every developer. Documentation or specific eligibility guidance would be very helpful. Thank you.
Replies
1
Boosts
0
Views
72
Activity
5d
Is JIT execution possible for ordinary third-party iOS apps?
I'm researching whether a normally signed third-party iOS application can use Just-In-Time (JIT) compilation on a stock, unjailbroken iPhone. My project, Kairavox, aims to run a genuine, unmodified iPadOS installation as a guest inside a native iOS application. JIT compilation is central to our intended execution architecture: we want to translate and execute guest AArch64 instructions through dynamically generated native code. We intend to test through personal development signing and sideloading using AltStore or SideStore. App Store distribution is not a requirement. I've found Apple's documentation for: Allow Execution of Just-In-Time (JIT) Compiled Code Entitlement Porting Just-In-Time Compilers to Apple Silicon Alternative Browser Engines in the European Union However, the first two appear to concern the macOS Hardened Runtime context. Apple's alternative browser engine provisions also describe a specifically authorized exception, which does not describe our application. I'd appreciate clarification on what is supported for an ordinary third-party iOS app: Is there a documented iOS API or entitlement that allows a normally signed third-party app to allocate writable memory, generate machine code, and execute that code at runtime? Does iOS support MAP_JIT for ordinary third-party applications, or is it restricted to other Apple platforms or specially authorized applications? Is com.apple.security.cs.allow-jit exclusively a macOS Hardened Runtime entitlement, or does it have any application on iOS? Can an app using free Personal Team development signing execute JIT-generated code? Does paid Apple Developer Program membership change this? Do development, ad hoc, or other signing arrangements differ in their JIT permissions? Is there a documented process for an independent developer to request the necessary capability? Does installing an app through AltStore or SideStore change its OS-granted executable-memory permissions, or does it retain the permissions associated with its signed build? Are there any documented restrictions on using JIT-generated native code for CPU emulation or virtualization workloads? I understand that Apple's EU alternative-browser-engine authorization is a narrow exception for eligible browser applications. I'm not assuming it applies to Kairavox. The main question is whether an independent developer can build and test a JIT-based application on a stock iPhone using an officially supported signing and permission model. Thank you.
Replies
1
Boosts
0
Views
72
Activity
5d
Improve PTT System UI Visibility When Location Indicators Are Active
Observed Limitation When location services are active, the iOS location indicator may overlap with or hide the PTT blue button or system UI in the notch / Dynamic Island area. Requested Changes Ensure PTT controls remain visible and accessible when location indicators are displayed. Improve system UI positioning to prevent conflicts with other system indicators.
Replies
1
Boosts
0
Views
47
Activity
6d