Discuss hardware-specific topics related to Mac.

Posts under Mac tag

77 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

what's wrong
i never imagined that an apple product could do such. a thing . i 've updated to the latest version , 15.3 what should i do next time? i've had to restart it three times, the last one finally helped here is the link https://youtu.be/-aqjzVKMZGA
0
0
29
1d
Too sensitive trackpad?
My post i the general forum was deleted because I am running on Sequoia beta. The issue seems to occur regardless of macOS version. MacBook Air (M1, 2020): Trackpad reacts to the slightest touch, either moving thw cursor or clickin. Obviously I have adjusted settings and it's still too sensitive. If I don't take my fingers completely away from the trackpad as I use it, I often find new windows opening, dialog boxes popping up, ads getting clicked on, etc. I have gone into trackpad preferences several times and adjusted everything I can find that ought to help and it doesn't. Disabling “touch to click” remedies the unintentional clicks, although I would like to keep that functionality of workin as intended. The other nuisances remain.
2
0
137
1w
Detecting DarkWake and Maintainance Sleep transitions
On a macOS machine running v15.0, I have a daemon run by launchd which subscribes to the sleep and wakeup notifications using the IORegisterForSystemPower method. void PowerCallBack(void* refCon, io_service_t service, natural_t messageType, void* messageArgument) { switch (messageType) { case kIOMessageSystemWillSleep: logger->Debug("Received sleep notification from macOS"); if (refCon) { //Handle Sleep } IOAllowPowerChange(root_port, (long)messageArgument); break; case kIOMessageSystemHasPoweredOn: logger->Debug("Received wakeup notification from macOS"); if (refCon) { // Handle Wakeup } break; default: break; } } void MacOSNotification::RegisterNotifications() { logger->Debug("Registering for notifications from macOS"); powerNotificationThread = [[NSThread alloc] initWithBlock:^{ // Notifier object, used to deregister later root_port = IORegisterForSystemPower(this, &notifyPortRef, PowerCallBack, &notifierObject); if (root_port == 0) { return; } logger->Debug("Registered for system power notifications from macOS"); // Add the notification port to the application runloop CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notifyPortRef), kCFRunLoopCommonModes); CFRunLoopRun(); }]; //END OF THREAD BLOCK [powerNotificationThread start]; } Using this mechanism, I am getting notifications for normal sleep and wakeup transitions like closing and opening the lid. I need these notifications to terminate/reconnect my connection to a cloud service when we go to sleep/wakeup respectively. I have noticed from the power logs at /private/var/log/powermanagement that the after the sleep initiated by lid closing or clicking sleep in the top apple menu (both of which I can detect as they generate power notification), the macOS machine wakes up with the following message from powerd logs: DarkWake from Deep Idle [CDNP] : due to SMC.OutboxNotEmpty smc.70070000 wifibt/ I do not get any notification for this wakeup and my application threads start running. This happens every 15 to 16 mins from my observation. After this DarkWake, we go back to 'Maintenance' sleep in under a minute as can be seen by the following powerd log: Entering Sleep state due to 'Maintenance Sleep':TCPKeepAlive=active I do not get any notifications for this either. Is there a way to track and get notified of these DarkWake -> Maintenance sleep cycles? At the very least I would like to log when we go into and come out of these states. Currently I just rely on seeing a 15 min window of no logs to know this must have a DarkWake -> Maintenance sleep cycle. Also is there a way to make sure my application and its threads are not woken up by DarkWake (like an opt-out)? I would like to make it so that my application only runs when we are properly sleeping and waking.
3
0
192
6d
Crash report - WD Unlocker
I can't unlock my extern device. I have the followed crah report as I try to enter my password. The device was once used on a microsoft computer, idk if it's linked somehow. Does anyone know what to do ? Translated Report (Full Report Below) Process: WD Drive Unlock [1303] Path: /Volumes/VOLUME/WD Drive Unlock.app/Contents/MacOS/WD Drive Unlock Identifier: com.westerndigital.WDDriveUnlock Version: 2.0.0.45 (2.0.0.45) Code Type: X86-64 (Translated) Parent Process: launchd [1] User ID: 501 Date/Time: 2024-11-23 11:49:58.9117 +0100 OS Version: macOS 14.3.1 (23D60) Report Version: 12 Anonymous UUID: 867E7C29-A5F7-9384-C84A-E8DD7E31CF51 Time Awake Since Boot: 270 seconds System Integrity Protection: enabled Notes: PC register does not match crashing frame (0x0 vs 0x7FF80BA0BF60) Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Codes: 0x0000000000000001, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [1303] VM Region Info: 0 is not in any region. Bytes before following region: 4294967296 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 100000000-100011000 [ 68K] r-x/rwx SM=COW ... Drive Unlock Error Formulating Crash Report: PC register does not match crashing frame (0x0 vs 0x7FF80BA0BF60)
1
0
135
2w
16" to 27" iPAD's
HI Apple, Can you please design & release a bigger iPad panel. Work the visual engineering side of Live Events & we need this now. Touchscreen support on MBP's always been terrible but with 'sidecar' we have an option, all be it a merger 13" one. Mac mini + Big iPad could be the ultimate 'on the road' office. Shareholders will be happy & you can still play the MacOS / IOS game whilst giving us pro users an option. Bring back Jony Ive?. Its 2024 Best, FF-44.
0
0
108
Nov ’24
Apple ID password cross-contamination with the new Passwords app?
Hello, I am seeing some weird behavior regarding the new Passwords app. I have a m3 max macbook that work provides me with a company provided apple ID (granted I don't think there is any rigid management profile with this account it just blocks downloads from the app store). This is preferable to using my personal apple ID on company hardware to avoid sharing all my personal data and just login with my personal account for things I don't care if my company knows about, like my music preferences. So, the weird behavior I am seeing is after upgrading my work machine to the macOS Sequoia Public Beta and having only using my personal apple ID to sign into Apple Music. I start test driving the new Passwords app and notice that it has seemingly exported a handful of account info and passwords from my personal apple id to my company managed one. There appears to be no rhyme or reason as to the ones that were synced between the two accounts (it snagged my personal github account info and a couple of other random stuff like my Pokemon Go account info). Luckily these being made known to the company aren't harmful to me at all, but it is concerning. I have never even searched, let alone, login to the sites and apps that the Passwords app now magically has the context to. I also can't delete them on the work machine. The process of deleting them appears to work but the next time I open Passwords they reappear (despite having logged out of my personal apple ID from Apple Music soon after this occured). I just wanted to share and see if anyone else has also had a similar experience or any insight. Thanks for your time.
1
0
142
Oct ’24
iPhone/iPad lose Data connection when using USB-C to USB-C cables after reboot on ARM Macs
I've noticed an issue when using an iPhone or iPad that uses a USB-C port (such as the iPhone 15 Pro or iPad Pro 12.9" 6th generation) and a USB-C to USB-C cable on ARM Macs (such as the M2 Mini). After rebooting the Mac, the iOS device is no longer recognized despite the iOS device continuing to charge. I can temporarily resolve the issue by reseating the USB-C cable, which allows the device to be recognized again by applications like Finder. However, this isn't a practical solution due to the number of M2 Minis we have (each with an attached iPhone for testing) and the Mini's frequent automatic reboots throughout the day. Using a USB-A to USB-C cable (with USB-A connected to the Mac Mini) seems to avoid this problem altogether, as the iOS device remains consistently recognized after a reboot. As the title suggests, this issue appears to be specific to ARM-based Macs. We've encountered it on both the M2 Mini and a 2021 Macbook Pro with the M1 Max chip. Interestingly, we haven't been able to reproduce this behavior on Intel-based Macs (tested on an 8,1 Mac Mini and a 2019 16" Macbook), where the iOS devices remain connected after a reboot when using a USB-C to USB-C cable. Here are some additional details: iOS Devices & Versions: iPhone 15 Pro: Issue persists on both iOS 17.1 and iOS 18.0.1 iPad Pro 12.9" (6th generation): Issue persists on both iPadOS 17.6.1 and iPadOS 18.0.1 Cables: Apple's 60W USB-C Charge Cable (USB 2.0): Issue occurs Generic/Third-party USB-C cable (USB 3): Issue occurs
1
0
264
Oct ’24
sequoia 15.0 after update issue
with my Mac air m2, after the update finished it started normally but after logging in, the Home Screen is blank (only wallpaper) no apps, no control bar, no dock nothing is showing up it’s just a blank normal screen I can move my mouse but can’t do anything with keyboard, when I lock and re-login it still stays same screen, I tried to reboot it, restart so many times but nothing helps, please if you have solution for this, I will be more than happy to know, thank you.
2
0
421
Oct ’24
Bluetooth connection unexpectedly timing out with macOS Sequoia
After the macOS Sequoia update, my app seems to have an issue with Bluetooth communication between macOS and iOS that uses CoreBluetooth for Central-Peripheral communication. Setup: The iPhone (in my case: iPhone 14 Pro with iOS 18.0 (22A3354)) acts as the Central, and the Mac (in my case: 14" MacBook Pro 2023 with macOS 15.0 (24A335)) as the Peripheral. I’ve implemented a mechanism where the Central (iPhone) sends a message to the Peripheral (Mac) every 15 seconds to keep the connection alive (Because it needs to wait for notify characteristic updates). I never noticed this kind of issue before, but with macOS Sequoia I get it permanently. Issue: The connection drops unexpectedly after a period of time (sometimes 20 seconds, sometimes a few minutes) with CBErrorDomain - code 6: The connection has timed out unexpectedly. Sample Code: Peripheral (Mac): ContentView (Peripheral).txt ContentViewModel (Peripheral).txt Central (iPhone): ContentView (Central).txt ContentViewModel (Central).txt Reproduce: I attached sample code including the Central-Sample (for iPhone) and Peripheral-Sample (for Mac). Just run the Peripheral-Sample (after granting Bluetooth permissions). Then run the Central-Sample and select the Mac device in the list After selecting it should connect, discover the service & characteristic and should start writing messages to it. After some time the func centralManager(_ central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: (any Error)?) {should get called with timed out unexpectedly error. Could anyone please look into this issue and advise on whether there’s a known bug or any workaround? Any guidance would be greatly appreciated, as this impacts the stability of Bluetooth communication between the devices. Thanks in advance. Logs: I also ran the console.app during this issue which got these errors (if this is helpful): console_logs.txt
5
4
1.4k
Oct ’24
Mail.app & BBEdit Crashing Overnight
For some reason I am seeing Mail.app and/or BBEdit crash overnight. There are no reports in the Console. I set up a cron job for every 15 minutes to measure memory pressure and to see if BBEdit was open. Last night it was showing System-wide memory free percentage: 74% when the app closed. I have no cron jobs that close BBEdit. Either one of these apps close overnight on a regular basis, but it's not every night. I don't know how to troubleshoot this. Anybody have any ideas? Cheers
1
0
310
Sep ’24
Ghost Complile Error and other odd project issues
In my project I had made the following code block I changed //ToolbarItemGroup(placement: .topBarTrailing) to ToolbarItemGroup(placement: .topBarLeading) because I got a compile error. Then I started having the effect of everytime I did a Clean then Rebuild I would get the following Error /Users/barrywest/Desktop/Apple Development/AppleTutorials/APAJSONReader/APAJSONReader/View/SchemaMaintenance/SchemaDetail.swift:149:42 'navigationBarTrailing' is unavailable in macOS once clicked it would hightlight the commeted out code. then the error would magically go away after clicking on the error If you do not click the error it would stay, even if you ran the code it would display but the simulator would run instead of getting an error I then delete the comment, but I still get the ghost complile error with the same effect. I continued to make changes, and now the I get a different older display on the simulator, as compared to my Preivew Display. The colors seem to have gotten saved in the Run Simulator, even after Clean Build, Recompile... I still get the ghost error which has been removed and the new Executable still contains ghost code which shows incorrect colors. I can have the simulator and preview view running at the same time with different View Colors... I have closed the project and reopend the project with no Changes. My guess is some kind of file corruption somewhere ... import SwiftUI import SwiftData struct SchemaDetail: View { @Environment(\.modelContext) var dbContext ... var body: some View { VStack { switch schemaName { case .leagues: switch displayCategory { case .full: leagueFullDisplay case .brief: leagueBriefDisplay case .edit: leagueEdit case .create: leagueCreate } ... } //Text(schemaName.localizedName) } .navigationTitle(schemaName.localizedName) .toolbar { ** //ToolbarItemGroup(placement: .topBarTrailing)** ToolbarItemGroup(placement: .topBarLeading) { switch displayCategory { case .full: Button(action: { }, label: { Image(systemName: "minus.magnifyingglass") }) Button(action: { }, label: { Image(systemName: "doc.badge.plus") }) Button(action: { // Preload from json Warning may be about using background thread ??? Task(priority: .background) { loadLeagues() } }, label: { Image(systemName: "folder.fill.badge.gearshape") }) case .brief: Button(action: { }, label: { Image(systemName: "plus.magnifyingglass") }) Button(action: { }, label: { Image(systemName: "doc.badge.plus") }) case .create: Button(action: { }, label: { Image(systemName: "square.and.arrow.down.fill") }) Button(action: { }, label: { Image(systemName: "arrowshape.turn.up.backward.circle.fill") }) case .edit: Button(action: { }, label: { Image(systemName: "square.and.arrow.down.fill") }) Button(action: { }, label: { Image(systemName: "arrowshape.turn.up.backward.circle.fill") }) } } } } } #Preview { SchemaDetail(schemaName: LeagueCategory.sessions, displayCategory: DisplayCategory.brief) }
2
0
426
Aug ’24
Autoconfigure in macOS Mail.app and iOS Mail
I recall years ago that autoconfigure for email accounts worked in iOS Mail/macOS Mail.app when MacOS X Server was a thing. The protocol is supported by Outlook and Thunderbird and some other apps as well. Using WireShark, I can see there's some network activity from Mail.app when trying to get to the second step of adding a new email account. The most documentation I've been able to find online is making a mobileconfig file which works but is cumbersome in comparison to how it works with Outlook and Thunderbird. If there's any kind of documentation on autoconfigure for macOS/iOS, I'd like to see it so I can help with Virtualmin development team fix their implementation of autoconfigure/autodiscover to properly work with iOS/macOS. Help anyone?
0
1
440
Jul ’24
Folders and Files disappeared from Finder and iCloud!
Hi, I have recently bought a new MacBook Pro (Sonoma) and after installed several software I realised that the folders that were on the Finder disappeared from the Mac and iCloud. I read countless forums and tried different option as well as third-party software to see if they are still in it, but nothing. I was a bit concerned that leaving the filed "only" on iCloud was too risky. After some manoeuvres the folders, ONLY, reappeared in the Downloads folder (even if it was not their path). Is there anyone can help me with this? One of the folder was a music folder (I am a musician and dj) and there are my last 15 years, and I would like not to lose it. Thank you in advance for your help. Mike
0
0
321
Jul ’24
Emulated GCGameController not working with non fullscreen Designed for iPad apps on MacBook
Hello, I have an iPad app that users are running on their M1 / M2 MacBooks thanks to the "Designed for iPad" feature. Some of them reported to me that the pressed keyboard keys were not recognized. According to my source code, it seems that my custom views (that are set as firstResponder) do not get pressesBegan events. While I could not reproduce this specific problem on my M1 Macbook, I found a strange problem that may be related. My view also supports interaction with game controllers. I found that the emulated controller (which is using the keyboard, when the controller emulation feature of the Designed for iPad app is set to On) has some problems. The valueChangedHandler of the GCExtendedGamepad from the GCGameController is only fired if the app is compiled with the "Requires full screen" option set to On. If Requires full screen is unchecked in XCode, the Emulated Controller is still present in the list of game controllers, but no button callbacks are triggered. Note that a real game controller connected via USB will work correctly no matter how Requires full screen is set. Could there be a focus bug of the keyboard not sending events when the app is not a full screen app (resizable on mac, and multitask on iPad)? Or is there something I can change to avoid this problem? I'm lost.
0
0
548
Jul ’24
Version 15.4 (15F31d) Xcode NSAppleScript of Safari broken
All attempts to script Safari in Xcode using NSAppleScript returns the following message. error: { NSAppleScriptErrorAppName = Safari; NSAppleScriptErrorBriefMessage = "Application isn\U2019t running."; NSAppleScriptErrorMessage = "Safari got an error: Application isn\U2019t running."; NSAppleScriptErrorNumber = "-600"; NSAppleScriptErrorRange = "NSRange: {32, 3}"; } Latest script attempt: func getHTML() -> String { let source = """ tell application "Safari" get URL of tab 1 of window 1 end tell """ //print(source) var a = "hello" var error: NSDictionary? if let scriptObject = NSAppleScript(source: source) { if let scriptResult = scriptObject.executeAndReturnError(&error).stringValue { a = scriptResult print(scriptResult) } else if (error != nil) { print("error: ",error!) } } return a }
3
0
785
Jul ’24