I've been spending days trying to solve the memory leak in a small menu bar application I've wrote (SC Menu). I've used Instruments which shows the leaks and memory graph which shows unreleased allocations. This occurs when someone views a certificate on the smartcard. Basically it opens a new window and displays the certificate, the same way Keychain Access displays a certificate. Whenever I create an SFCertificateView instance and set setDetailsDisclosed(true) - a memory leak happens. Instruments highlights that line. import Cocoa import SecurityInterface class ViewCertsViewController: NSViewController { var selectedCert: SecIdentity? = nil override func viewDidLoad() { super.viewDidLoad() self.view = NSView(frame: NSRect(x: 0, y: 0, width: 500, height: 500)) self.view.wantsLayer = true var secRef: SecCertificate? = nil guard let selectedCert else { return } let certRefErr = SecIdentityCopyCertificate(selectedCert, &secRef) if certRefErr != errSecSuccess { os_log(Error getting certificate from identity:
Search results for
Request failed with http status code 503
190,575 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Can anyone give advice? Thanks a ton! Unfortunately, this is actually the first time I've looked at Building an Audio Server Plug-in and Driver Extension and, to be honest, that is not great sample code. Using darwinup in a shell script is not something any one should actually do. I've already filed a bug on this (r.163226098), but you're going to need to do a bit of work to end up with something reasonable. SO, what I would actually suggest is the following: Start with the sample Communicating between a DriverKit extension and a client app and get it building and running. That's our simplest sample and will let you sort out the basic build and install process. Once that's working, replace the DEXT inside that sample with the DEXT from Building an Audio Server Plug-in and Driver Extension. Once that's done, you'll have an installer app with an embedded DEXT, which is what ALL DEXT need to be shipped as anyway. Shifting to the codesign front: I would be ok for now with the local option, but XCode 16.4
Topic:
Code Signing
SubTopic:
Entitlements
Am I doing something wrong here? No, not really. I've actually seen variations of this failure across all macOS versions going back... well, basically forever. The details of EXACTLY how it plays out vary across system versions, but the basic dynamics at work here are: LaunchServices works by detecting when apps/components appear in the system, then reading the data from those components into its database. The nature of the development process means that you can easily produce new apps with a speed and volume WILDLY higher than any normal user would. The entire system is regularly interacting with the LaunchServices database at exactly the same time you're changing that configuration. ...the net result of which is that something occasionally goes wrong, leaving bad data in the database. I think I may be causing the constant unregister/register of the extension directly by rebuilding via Xcode. Or is it a problem with extensionkitservice? It's certainly a bug and, if you haven't already, please do file a bug o
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Intel – macOS 15.6 ONLY: Broken. Have you tested this on: Multiple Intel machines. and/or A clean system reinstall, either by erasing the machine or by using a VM. Have you tested this on 15.7.1 (the current release)? Shifting to here: Is there a known Intel-only regression in 15.6 where FDA toggles for app-bundled daemons fail to persist? I'm not aware of any such issue and I'd expect a general FDA failure to cause significant problems. Having it be “Intel only is also quite odd, as everything that manages FDA state is at a high enough level of the system that the CPU architecture shouldn't matter. However, what I this is more likely is that there might be issues on a specific machine which would prevent FDA from sticking. Lastly, have you filed a bug on this and, if so, what's the bug number? Does launching the daemon immediately after install (triggered by a separate LaunchDaemon running an install.sh) interact with TCC/FDA persistence on Intel 15.6 specifically? Note inherently, though how it's l
Topic:
Privacy & Security
SubTopic:
General
Tags:
I have a SwiftUI View containing a basic NavigationStack structure. I host this in a UIHostingController and display modally as a sheet in UIKit using UIViewController.present(). Problem: When I rotate my iOS device to landscape from portrait, the navigation bar's back button extends past the safe area into the left corner of the device. Then, rotating back to portrait the back button is pushed further towards the center - not matching the intended position. (see images below). Is there an API call I am missing to handle this rotation case? Thanks! Code Example SwiftUI view - ContentView.swift import SwiftUI struct ContentView: View { var body: some View { NavigationStack { Form { NavigationLink { Form { Text(Hello) } .navigationTitle(Filter) .navigationBarTitleDisplayMode(.inline) } label: { Text(Filter) } } .navigationTitle(Filter) .navigationBarTitleDisplayMode(.inline) } } } Main UIKit ViewController - ViewController.swift import UIKit import SwiftUI class ViewController: UIViewController { let s
I think I went to the right place to put in a feature request. It has been a while since Coded PHY was announced, so I'm sure Apple is aware of it and has a position on it. It would just be good to hear what it is. I see SoCs get significant range, in one test 500 meters (https://www.youtube.com/watch?v=ANqkKXDzWqo&t=52s One Plus Nord N10 5G phone). I also saw Direction Sounding support in another phone(https://www.youtube.com/watch?v=sx-6o64206Q Pixel 10). It would be great to hear if these innovations are coming to iPhone.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
In our system, when a user enables a mobile hotspot and the system connects to it, the system attempts to verify WIFI availability by sending an HTTP GET request to http://captive.apple.com. Normally, the server returns: HTTP Status: 200 (OK) Content-Type: text/html This has always been used as a sign of normal connectivity. Issue: Since last Friday, the server sometimes responds with: Content-Type: application/octet-stream When this occurs, our system determines that the network is unavailable and displays a connection warning (a “!” icon). Question: Has Apple recently made any backend or CDN configuration changes to captive.apple.com that could affect the response type? Any advice how can we solve this problem? Thanks!
Topic:
Accessibility & Inclusion
SubTopic:
General
Hi Kevin — thanks for the detailed reply. Quick confirmations We’re already shipping the ES daemon as an app-bundled executable (signed, hardened, notarized). FDA is being granted through System Settings → Privacy & Security → Full Disk Access to the app bundle (per your #1), not to a bare exe. ES entitlement is present; Gatekeeper/SPCTL and codesign checks are clean. What we’re actually hitting (repro matrix) Apple Silicon (M-series) – macOS 15.6: Works. FDA toggles on and persists. ES daemon runs fine at boot. Intel – macOS ≤ 15.5: Works. Intel – macOS 15.6 ONLY: Broken. In Full Disk Access, turning the toggle On either immediately flips back Off, or appears On but flips Off after navigating away and back. When it “looks” On, the ES daemon still behaves as if FDA is not granted. This behavior is consistent across multiple Intel machines and fresh user profiles. Extra notes about launch The daemon is launched by launchd (system domain) as usual. Our installer (run by another LaunchDaemon’s install.sh) re
Topic:
Privacy & Security
SubTopic:
General
Tags:
Hi @leokaminski07. Thanks for posting a sample project. I was able to reproduce your results here using your sample on an iPad Pro running iOS 26.0.1. Beyond turning off the Button Shapes option, I don't have any recommendations for avoiding this bug. Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a reference to your Xcode project and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports. Bug Reporting: How and Why? has tips on creating your bug report.
Topic:
App & System Services
SubTopic:
General
Tags:
I am a professor at the Mercer University School of Medicine (Macon, GA) and I teach a stress reduction course for first year medical students. I am developing an app to allow the students to trace their mediations as well as time them. Using ChatGPT with Xcode, I was able to get all the features in the app working except that the stopwatch timer would not continue when the iPhone goes to sleep. When ChatGPT made some changes, the build failed because automated signing failed and the com.apple developer.activity kit entitlement is missing I don’t see Live Activities in the capability section of signing & Capabilities and I don’t know how to fix the provisioning profile. How can I get help for this? Thank you!
Topic:
Code Signing
SubTopic:
Entitlements
No custom navigation bar background. Here's what the view itself looks like before and after and a code snippet of the setup if that helps. What major changes happened that could prevent this title from showing? navigationItem.title = L10n.Accounts.navTitle navigationItem.searchController = searchController navigationItem.hidesSearchBarWhenScrolling = false navigationItem.largeTitleDisplayMode = .always tabBarItem.title = L10n.Accounts.navTitle tabBarItem.badgeValue = hasMissingOrders ? ● : nil tabBarItem.badgeColor = .clear tabBarItem.setBadgeTextAttributes([NSAttributedString.Key.foregroundColor: UIColor.M360.secondary], for: .normal) tabBarItem.selectedImage = Asset.accountsNewActive.image tabBarItem.image = Asset.accountsNewInactive.image tabBarItem.accessibilityIdentifier = AccessibilityIdentifiers.Tabs.accountsButton }
Topic:
UI Frameworks
SubTopic:
UIKit
@Etresoft, Well there's still the Apple Events capability in Signing & Capabilities. You have to provide a message to the user about why your app needs AppleEvents. I'm not sure what happens if that's missing. I don't remember from when I've done it previously, but I think OS just offers some default message presented to the user. I'm going to go ahead and disagree on that point. But I assume you're only talking about the end result for your use case. I haven't tried it, but osascript just executes scripts, without providing any extra functionality to control them. Since the plain script exhibits the undesirable (for me) behaviour with already existing files, I assume using osascript would result in the same. Are you sure that's even possible? So I think your suspicions here are likely unfounded. I'm not sure, but for the beginning, I first need to programmatically make Finder to react. And at the moment I'm not able to, due to all the explanations I provided in the initial post. I don't understand why it
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags:
Thank you for filing a bug report (FB20271264). Looking at the status of your bug initial testing shows engineering was unable to reproduce the problem. However, they are continuing to investigate. If you can provide specific steps they can use to reproduce the bug please add that to your bug report.
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags:
I’m not going to be able to help you with this. We don’t support folks killing arbitrary system processes. This is problematic for a variety of reasons, but the big issue here is that the name, location, and behaviour of system processes are all implementation details. If you build a product that relies on such implementation details, you are likely to run into compatibility problems down the line. Which is exactly what’s happened in this case )-: My advice is that you find an alternative way to achieve your ultimate goal. If you’re unable to do so, I recommend that you file an enhancement request for a supported path forward, making sure to explain your requirements and the reasons why the current mechanism don’t work for you. If you do file an ER, please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags:
Hey, sorry for not the greatest title, initially thought I will be able to edit and polish title and content, but saw in the forums, that it is possible to do that only for a short amount of time. Getting back to the topic: https://github.com/nymtech/nym-vpn-client/blob/develop/nym-vpn-apple/Daemon/net.nymtech.vpn.helper.plist Yes, we are using BundleProgram.
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: