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 <
coreaudio-api@lists.apple.com> 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      (Coreaudio-api@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
>
> https://lists.apple.com/mailman/options/coreaudio-api/kyle%40bearisdriving.com
>
> This email sent to k...@bearisdriving.com
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (Coreaudio-api@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to