# Are AUv3s on macOS Supported?

**URL:** <https://forum.juce.com/t/are-auv3s-on-macos-supported/62101>\
**Category:** Audio Plugins\
**Created:** [July 9, 2024, 4:36pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101 "2024-07-09T16:36:16Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 9, 2024, 4:36pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/1 "2024-07-09T16:36:16Z")

</div>

I’m having a terrible time trying to get a macOS AUv3 to build and be recognised in any host, primarily Logic.

Here’s the steps:

- Clone juce `develop`
- Navigate to `examples/Plugins/SamplerPluginDemo.h`
- Add `extraPluginFormats: AUv3` at the top, just above `END_JUCE_PIP_METADATA`
- Run `cmake -G Xcode` at the root level
- Build the `SamplerPlugin_AUv3` target
- Find the built `SamplerPlugin.appex` and copy it to `/Applications`
- Load Logic and check the “Plug-In Manager”
  - Desired: SamplerPlugin by JUCE appears in the list
  - Actual: No SamplerPlugin anywhere

I assume these are the correct steps? Has anyone else successfully built and run a JUCE example plugin as AUv3?

I also tried the `AUv3SynthPlugin` to no avail.

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [July 9, 2024, 5:09pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/2 "2024-07-09T17:09:35Z")

</div>

> [@dave96](#):
>
> - Build the `SamplerPlugin_AUv3` target
> - Find the built `SamplerPlugin.appex` and copy it to `/Applications`

This isn’t quite right. The appex should be bundled inside a `.app`, and the outer app needs to be run in order to register the appex. If you’re using JUCE’s CMake support, and you have both the Standalone and AUv3 formats enabled, then building the Standalone target will also build the AUv3 target and move it into the correct location in the standalone .app bundle. After building the standalone, you also need to run it in order to register the AUv3.

Lots of the standard AU debugging stuff still applies. `killall -9 AudioComponentRegistrar` can be useful to force a rescan of all the plugins. There’s also a button in Logic’s plugin manager to invalidate the AU cache and force a rescan. It can be helpful to change the plugin’s ID code temporarily if you think the plugin should be showing up and all else has failed.

You can use `auval -al` to list all of the known plugins, and then grep for the plugin you’re currently working on. To distinguish between AUv2 and AUv3 versions, check whether the plugin’s file path ends with `.component` or `.appex`. This might be a bit quicker than loading Logic repeatedly.

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 9, 2024, 6:52pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/3 "2024-07-09T18:52:31Z")

</div>

Ok, this does actually work so thanks!

Doing this seems to be the quickest command:

```auto
auval -l | grep "AUv3"            
aumu Oyej Manu - JUCE: SamplerPlugin (file:///Applications/SamplerPlugin.app/Contents/PlugIns/SamplerPlugin.appex/) [AUv3]

```

However this fails to load (the Standalone does load ok).

```auto
auval -v aumu Oyej Manu
--------------------------------------------------
VALIDATING AUDIO UNIT: 'aumu' - 'Oyej' - 'Manu'
--------------------------------------------------
Manufacturer String: JUCE
AudioUnit Name: SamplerPlugin
Component Version: 8.0.0 (0x80000)

* * PASS
--------------------------------------------------
TESTING OPEN TIMES:
COLD:
2024-07-09 19:49:20.409 auvaltool[25196:4984278] Error: Failed to connect to remote view because of Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service created from an endpoint was invalidated from this process." UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.}
FATAL ERROR: OpenAComponent: result: 4099,0x1003

```

I’m not sure if this is a problem with this plugin or more generally though. I’m going to take a deeper look tomorrow.

Thanks for the pointer!

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 9, 2024, 7:01pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/4 "2024-07-09T19:01:32Z")

</div>

Update: The ArpeggiatorPlugin seems to work

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [July 9, 2024, 8:09pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/5 "2024-07-09T20:09:59Z")

</div>

Thanks, I’m also able to repro this crash. I think it’s because the AUv3 attempts to load a wave file resource that isn’t available at runtime. I think this is only an issue with this example.

I also found an issue in the AUv3 SurroundPlugin demo, which seems to be caused by a mismatch between the JUCE and AUv3 bus counts.

I’ll try to put together some fixes for these issues tomorrow.

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 9, 2024, 8:45pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/6 "2024-07-09T20:45:16Z")

</div>

Ok thanks. As I have this working now there’s no rush from my end. I really just needed an example AUv3 on macOS so I could add support to Tracktion Engine. There are surprisingly few (none that I could find freely) out there.

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [July 10, 2024, 6:55am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/7 "2024-07-10T06:55:40Z")

</div>

> [@reuk](#):
>
> I also found an issue in the AUv3 SurroundPlugin demo, which seems to be caused by a mismatch between the JUCE and AUv3 bus counts.

Is this is the one I’ve tried getting fixed a while ago?

> [@Noise Gate - AUv3 Validation Error](https://forum.juce.com/t/noise-gate-auv3-validation-error/33317/4):
>
> It seems the problem with AUv3 is in bool shouldChangeToFormat (AVAudioFormat\* format, AUAudioUnitBus\* auBus) It correctly checks and change the bus layout. (eg we’re allowed to have 3 inputs). But it invalidates the entire layout (where now, the condition of equality between Inputs and Outputs is broken). So ideally, you’d like to check for the entire target layout within the call. Eg (demo code); auto currentBusLayout = processor.getBusesLayout(); auto& …

---

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [July 10, 2024, 6:58am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/8 "2024-07-10T06:58:22Z")

</div>

> [@dave96](#):
>
> There are surprisingly few (none that I could find freely) out there.

I’ve actually made one AUv3 “instrument” which is also open source and free …  
[https://tick.talaviram.com/](https://tick.talaviram.com/)

---

<div class="post-metadata">

**Author:** ![kerfuffle](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kerfuffle/32/11805_2.png) [@kerfuffle](https://forum.juce.com/u/kerfuffle)\
**Post date:** [July 10, 2024, 9:02am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/9 "2024-07-10T09:02:46Z")

</div>

Apple has published some sample projects for AUv3 that run on macOS, for example: [Creating Custom Audio Effects | Apple Developer Documentation](https://developer.apple.com/documentation/audiotoolbox/audio_unit_v3_plug-ins/creating_custom_audio_effects)

Quick tip: To find which app extensions are active on macOS, which includes any installed AUv3 plugins, use:

```auto
pluginkit -mv | grep example

```

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 10, 2024, 9:04am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/10 "2024-07-10T09:04:43Z")

</div>

Thanks. I’ve downloaded, installed and run it and can see the .appex in the app bundle but for some reason it’s not appearing in `auval -l`.

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 10, 2024, 9:04am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/11 "2024-07-10T09:04:54Z")

</div>

Thanks for the tip!

---

<div class="post-metadata">

**Author:** ![kerfuffle](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kerfuffle/32/11805_2.png) [@kerfuffle](https://forum.juce.com/u/kerfuffle)\
**Post date:** [July 10, 2024, 9:26am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/12 "2024-07-10T09:26:45Z")

</div>

If you don’t need source code, you can find some free AUv3 plug-ins on the Mac App Store. Just search for “auv3”. (This is also why AUv3 needs to be inside an app, so it can be distributed by the App Store.)

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [July 10, 2024, 9:29am UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/13 "2024-07-10T09:29:21Z")

</div>

Thanks, I should have thought of this 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [July 11, 2024, 8:53pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/14 "2024-07-11T20:53:40Z")

</div>

I’ve added a few fixes for the issues I flagged earlier. With these changes in place, the SamplerPlugin and SurroundPlugin AUv3 should both pass auval.

> <https://github.com/juce-framework/JUCE/commit/17fe23c95f40bd4a479227cf0212b465bb297b90>

> <https://github.com/juce-framework/JUCE/commit/6fd7a928f9bbc96ae7f272851a16d9610c9617d9>
>
> Previously, if the AudioProcessor had disabled buses, the AUv3 wrapper
> would att…empt to create zero-channel buses to represent the JUCE buses,
> which failed.
> 
> With this change in place, disabled buses will be created with their
> default layout, and then explicitly disabled.

> [@ttg](#):
>
> Is this is the one I’ve tried getting fixed a while ago?

The issues I found ended up being different to the issue that you reported. In any case, I also pushed an initial fix for your issue. There are more details in that thread.

---

<div class="post-metadata">

**Author:** ![peteatjuce](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/peteatjuce/32/2347_2.png) [@peteatjuce](https://forum.juce.com/u/peteatjuce)\
**Post date:** [September 1, 2024, 6:43pm UTC](https://forum.juce.com/t/are-auv3s-on-macos-supported/62101/16 "2024-09-01T18:43:55Z")

</div>

> [@dave96](#):
>
> There are surprisingly few (none that I could find freely) out there.

You could try Wotja:

> **[‎Wotja: Live Generative Music](https://apps.apple.com/gb/app/wotja-live-generative-music/id1344821101)**
>
> ‎Wotja is a powerful system for on-device generation of Live Generative Music & MIDI. Easily create & play ambient soundscapes, textured drones, text-to-music melodies/arps + so much more. It's actively developed & delivers great results!...

Best wishes, Pete
