macOS is the operating system for Mac.

macOS Documentation

Posts under macOS tag

1,517 Posts
Sort by:
Post not yet marked as solved
0 Replies
18 Views
In the process of accessing DEXT by applications, for the sake of simplicity in configuration, I used com.apple.developer.driverkit.allow-any-userclient-access in DEXT. However, for the sake of security in DEXT, I want to identify applications within DEXT and restrict access only to applications developed by my own team. How can this be implemented? Are there any APIs in DEXT that can be used to obtain information about applications for identification purposes? Thanks!
Posted
by icy_001.
Last updated
.
Post not yet marked as solved
0 Replies
35 Views
Hi, I'm working on a series of scripts and utilities that process logs and generate pre-composed email reports as a consequence, and wanted to use the open "mailto:address?subject=my subject&body=..." to do so from the scripting. to, cc, bcc, subject, and body are all obvious attributes, but what others are handled? Emails are typically sent from a joint mail address, not the user's primary (default) mail account (but one that is also locally provisioned in Mail.app). So I'd like to force the from=address attribute as well. And the messages should be text/plain, not multipart, and the charset of us-ascii. Where can I find the detailed handling on mailto: URL's in MacOS? RFC-6068 is unfortunately a guideline, and doesn't flesh out many requisites. Thanks
Posted Last updated
.
Post not yet marked as solved
1 Replies
805 Views
Hi there, I could not find any previous post about this so I figured I should open one. It looks like the use of CryptoTokenKit modules (whether SmartCard or Persistent ones) is hindered on headless environments. This was observed on AWS backed macOS machines, and also on actual physical machines when using CI/CD tools with no GUI access. My first guess is that this is due to the fact that loading the CTK Extension relies on running the GUI CTK App, which is not possible in pure headless fashion. The bug report FB12135879 was filled in this regard. Any input on this would be appreciated. Thanks,
Posted
by mostafaid.
Last updated
.
Post not yet marked as solved
5 Replies
936 Views
Following article Creating a widget extension on developer.apple.com (https://developer.apple.com/documentation/widgetkit/creating-a-widget-extension) I encountered a problem with XCode preview: it shows an error with message | RemoteHumanReadableError: Failed to launch agent | No plugin is registered to launch the process type widgetExtension. Can someone help me? macOS 13.4 XCode 14.3.1
Posted
by Ratka6.
Last updated
.
Post not yet marked as solved
14 Replies
552 Views
I am developing a Mac app which provides a Credential Provider extension and I'm having trouble with passkey integration. I wrote here about the issue I'm having with the iOS app. On the Mac I'm experiencing a different issue. As opposed to the iOS app (where I'm not even able to use my extension to create a new passkey in the first place) on the Mac I'm able to use my extension to create a passkey. I save the credential identity into the system AutoFill suggestions store without error. The problem is that when I attempt to authenticate on the same site the system does not offer my app's credential as a suggestion. Standard passwords are working fine. Can anyone help me understand how I can troubleshoot this type of problem? Thanks! -Jeremy
Posted Last updated
.
Post not yet marked as solved
1 Replies
60 Views
I am receiving an error message trying to upload an update for my macOS app to App Store Connect that I do not understand: "Cannot be used with TestFlight because the signature for the bundle at “YourApp.app” is missing an application identifier but has an application identifier in the provisioning profile for the bundle. Bundles with application identifiers in the provisioning profile are expected to have the same identifier signed into the bundle in order to be eligible for TestFlight". I have double-checked, and the nbunde identifier in the profile matches that in the Info.plist, and I have, in addition, now passed it via "--identifier" to code sign for the app bundle as well, but the error remains. Where else would the identifier be needed, and has this changed recently? (I last uploaded this app a year ago, w/o issues, and made no relevant changes). I am using a custom toolchain and not Xcode to build the app bundle and installer. codesign -dvvv also reports the correct the bundle identifier back as expected. any suggestions?
Posted
by dwarfland.
Last updated
.
Post not yet marked as solved
2 Replies
486 Views
In the context of a system utility that reports OS stats periodically, the security type for a connected WiFi network could be obtained with Core WLAN via CWInterface.security. This used to work up to Ventur; howver, after upgrading to Sonoma, cwInterface.security now returns kCWSecurityUnknown. In other posts, I have read about changes in how Core WLAN works which are related to Sonoma. How can I determine the security type for a connected WiFi network on Sonoma? It would be preferable if the suggested approach would also work on previous macOS versions as well. Many thanks in advance! :-)
Posted
by fsauter.
Last updated
.
Post marked as Apple Recommended
3.2k Views
I've had a little personal utility running for several versions of macOS that uses let client = CWWiFiClient.shared() if let ssid_name = client.interface()?.ssid() to get the current SSID name and prints it (along with a bunch of other active network details. With the most recent Sonoma Beta 2 and Xcode beta 2, this always returns nil. Doing the same thing in a playground works as expected. Is this a purposeful change or a bug I should file?
Posted
by ehemmete.
Last updated
.
Post not yet marked as solved
1 Replies
54 Views
When I update my MacBook to Sonoma version I can't scan any file with my printer. I can scan everything whenever I want before updating my Mac but when I update it I can't scan with/without any printer cables. Please fix it as soon as possible.
Posted Last updated
.
Post not yet marked as solved
0 Replies
67 Views
I am currently renovating an application for macOS Sonoma (14.4) which triggers a Canon 60D via USB cable. Unlike what happened before in MacOS 10.6, the camera (ICCameraDevice) has description that contains only 2 capabilities: { UUIDString = "00000000-0000-0000-0000-000004A93215"; autolaunchApplicationPath = ""; capabilities = ( ICCameraDeviceCanDeleteOneFile, ICCameraDeviceCanAcceptPTPCommands ); class = ICCameraDevice; connectionID = 0xffff0001; delegate = "<0x600003157ac0>"; deviceID = 0xffff0001; deviceRef = 0xffff0001; iconPath = "(null)"; locationDescription = ICDeviceLocationDescriptionUSB; moduleExecutableArchitecture = 0; modulePath = "/System/Library/Image Capture/Devices/PTPCamera.app"; moduleVersion = "1.0"; name = "Canon EOS 60D"; persistentIDString = "00000000-0000-0000-0000-000004A93215"; shared = NO; softwareInstallPercentDone = "0.000000"; transportType = ICTransportTypeUSB; type = 0x00000101; } timeOffset : 0.000000 hasConfigurableWiFiInterface : N/A isAccessRestrictedAppleDevice : NO As you can see, ICCameraDeviceCanTakePicture is not present now, and so I cannot take a picture with requestTakePicture. Do I need to do anything special to regain these capabilities, like in older versions of macOS? Is my only option to use PTP commands? Thanks!
Posted
by da_gagnon.
Last updated
.
Post not yet marked as solved
4 Replies
374 Views
Xcode 15 and Sonoma expose the property NSView.clipsToBounds. On Sonoma I need to set this property to TRUE and this is working well. However, for reasons, I also need to compile my macOS project with Xcode 13 and Xcode 14. I am having difficulty figuring out the Swift #available and @available directives to allow this. No matter how I wrap the self.clipsToBounds = true statement, on these earlier versions of Xcode I get a Swift error telling me that clipsToBounds cannot be found. Any help would be appreciated.
Posted
by granada29.
Last updated
.
Post not yet marked as solved
1 Replies
130 Views
I've set up a hot key to move the mouse pointer to my second machine without having to use the trackpad (it's a long way when you have to move across two monitors). I managed this with a hack using some basic python scripts and an accessibility feature (pointer control with keyboard). This is great and being able to ket the mouse pointer over to the other computer quickly is a big time save already. However, there is one nagging problem I'm trying to solve. Though my hack transfers trackpad input over to computer #2, keyboard input continues to go to the first computer until I manually click the trackpad, at which point computer #2 gains focus and starts to receive keyboard input. So I want to try to automate this trackpad click. My python script, which uses the Quartz library, was not enough. Keyboard input still goes to first computer after a simulated click on the second computer. I'm hoping there is some private api to help me pull this off but I'm far out of depth as far as the innards of macos development goes. Can someone point me in the right direction?
Posted
by sdondley.
Last updated
.
Post not yet marked as solved
0 Replies
74 Views
Hi all, I have a macbook air 2022 with the M2 chip inside. I am trying to use a wired xbox 360 controller to play games on steam. However, whenever I try to plug it it, the light shines green for a little bit and then turns off. I checked in my usb device tree through the system report and it says that there is a controller plugged in. The controller doesn't work in the game either, are there any fixes? I am also on macOS Monterey version 12.4
Posted Last updated
.
Post not yet marked as solved
0 Replies
71 Views
I would like implement certificate based authentication using MSCA as authenticator and along with 2FA as otp/push. Same I have achieve using authorization plugin where as first factor as user name and password and for second factor it going to my server for otp varification. In this case I would like to go to MACS for primary as certificate authentication and after that I would like to go to my server for second factor.
Posted Last updated
.
Post not yet marked as solved
1 Replies
80 Views
Saving data first time in UserDefaults on macOS creates a plist file at Containers folder path but after deleting and saving different data next time, previuos data(before deleting the app folder) also populates in plist file. if let test = UserDefaults(suiteName: "my_test_app_userdefaults_suite") { test.setValue("opt_in_1", forKey: "email_1") test.setValue("opt_in_2", forKey: "email_2") test.setValue("opt_in_3", forKey: "email_3") test.synchronize() } Steps: Run the macOS app with above source code, which saves key-value pairs in UserDefaults. Checked the UserDefaults plist at path /Users/rahulmahajan/Library/Containers/com.TestuUserDefaults/Data/Library/Preferences/my_test_app_userdefaults_suite.plist and all the data is available there, which is good. Now, deleted the app folder at path /Users/rahulmahajan/Library/Containers/com.TestuUserDefaults. Commented the opt_in_2 and opt_in_3 statements, ran the app. Checked the plist at path from Step-2, the lines commented in Step-4 are auto-populated in plist.
Posted Last updated
.
Post not yet marked as solved
1 Replies
306 Views
I've recently updated macOS to Sonoma from Monterey. I noticed that when I used rsync --av, it would keep copying the same files over and over again, even when I just reran the same command. This is occurring when I'm rsyncing files from the M1 Max Macbook Pro to a Samsung external hard drive, which is formatted exFAT. (I don't recall this being an issue on Monterey.) I've had the same problem with rsync version 2.6.9 and with version 3.2.7. If I use --size-only , this resolves the problem.
Posted Last updated
.
Post not yet marked as solved
0 Replies
60 Views
Hello, I’m trying to use the Frontline Teledyne Lecroy BPA100 Bluetooth Protocol Analyzer with Apples ATS v7.15.0 to capture Bluetooth connections between our device and another companies radio (or troubleshoot the lack thereof more accurately). While the probe physically doesn’t display any signs of life, it does seem to get detected by ATS when I plug it in as the field in ATS Capture “BPA 100/600” autofill’s with “FBA41199”. But it tells me this When I do try to reconnect the probe ATS crashes. Is the device broken?
Posted
by LSABliss.
Last updated
.
Post not yet marked as solved
0 Replies
34 Views
I am working in woolworths as MacOs support person and Macbooks are dropping out of Intune. We logged ticket with Microsoft as well and they are working on it. But they want me to log a ticket with Apple support and collect sysdiagnose logs from User's macbook and send it to apple for review. I raised Apple case ID : 102246533173 on Monday (11.03.24) but no one contacted me on my email. Can someone please contact me ASAP? Thanks, Niprav.
Posted
by npandit.
Last updated
.