Hi Kyle, Thanks a lot đ I confirm it works on a M1 pro/Monterey 12.3/Xcode 13.2.1.
FYI, I tried to attach with process name (Core Audio Driver (MergingRAVENNAAudioPlugIn.driver)) without success. If Apple is listening, it would be very useful to provide the ability in Xcode to âwait on the launch of a process nameâ to be able to debug the AudioServerPlugin from the beginning. The âAttach to processâ method provided by Kyle is very useful but doesnât allow to debug initialization code of the AudioServerPlugin ;( Thanks again Kyle, Bertrand From: Kyle Neideck <[email protected]> Date: Wednesday, 30 March 2022 at 12:55 To: Bertrand Van Kempen <[email protected]> Cc: [email protected] <[email protected]> Subject: Re: Debugging AudioServerPlugin on AppleSilicon Monterey Hi Bertrand, I don't have an Apple Silicon Mac to test with, so I'm not sure if this will work for you, but I just tried debugging an AudioServerPlugIn on macOS Monterey (12.2.1 (21D62)) and it seemed to work for me. Here's what I did. 1. Disabled SIP. 2. Searched for the name of my driver bundle (e.g. "My AudioServerPlugIn.driver") in Activity Monitor to find the PID of the process it's running in. The process was called "Core Audio Driver (My AudioServerPlugIn.driver)". 3. Opened Xcode and clicked Debug > Attach to process by PID or name... 4. Entered the PID, chose "debug process as root" and clicked Attach. Then I tested it by setting a breakpoint. It doesn't sound like I'm doing much different to what you've tried already, but maybe there's something subtle that's making it work for me. Kyle On Mon, 28 Mar 2022 at 02:02, Bertrand Van Kempen via Coreaudio-api <[email protected]<mailto:[email protected]>> wrote: Hi, Since I upgraded my dev machine to a Mac Book Pro 16â M1 Pro, Iâm no longer able to debug my CoreAudio AudioServerPlugin. On my Catalina dev machine (Intel), I do the following to debug the AudioServerPlugin: 1. launch the plugin form Xcode (process coreaudiod, root, âwait for the executable to be launchedâ 2. sudo launchctl remove com.apple.audio.coreaudiod 3. sudo launchctl load /System/Library/LaunchDaemons/com.apple.audio.coreaudiod.plist I suppose it is because coreaudiod is no longer executing the AudioServerPlugin and delegates the execution to /System/Library/Frameworks/CoreAudio.framework/Versions/A/XPCServices/com.apple.audio.Core-Audio-Driver-Service.helper.xpc/Contents/MacOS/com.apple.audio.Core-Audio-Driver-Service.helper. I tried to modify the Xcode scheme to wait on com.apple.audio.Core-Audio-Driver-Service.xpc but without any success. How do you do to debug your AudioServerPlugin from Xcode? Cheer, Bertrand _______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]<mailto:[email protected]>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/kyle%40bearisdriving.com This email sent to [email protected]<mailto:[email protected]>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
