# Service Failed Error when I try to start share the audio

**URL:** <https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090>\
**Category:** macOS\
**Created:** [December 10, 2020, 10:07am UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090 "2020-12-10T10:07:56Z")\
**Posts on this page:** 18\
**Page:** 2

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [October 8, 2021, 8:48pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/21 "2021-10-08T20:48:08Z")

</div>

I have found if I manually copy ZoomAudioDevice.driver from my application bundle to “/Library/Audio/Plug-Ins/HAL” and then restart CoreAudio

sudo launchctl stop com.apple.audio.coreaudiod  
sudo launchctl start com.apple.audio.coreaudiod

And then launch my app and share audio, I no longer receive the Error: 3 issue and audio share works.

Obviously this isn’t something a customer would be doing.

But I am still unsure of how to achieve this as MacOS requires root access to install to that directory. Also unsure if this is something the SDK should be attempting to do or if it is something our client is supposed to do.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [October 11, 2021, 10:41pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/22 "2021-10-11T22:41:11Z")

</div>

Hi @KieranAC,

Looking into this further, the only change you should need to make is copying the `ZoomAudioDevice.driver` file into `${YOUR_PROJECT}/Contents/Plugins`. The build phase should not be necessary. If you are still seeing issues after doing this, we’ll need the SDK logs to further investigate. If they were not found at the path I previously mentioned, they may be available at `~/Library/Logs/${YOUR_PROJECT}`.

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [October 13, 2021, 12:23am UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/23 "2021-10-13T00:23:36Z")

</div>

@jon.zoom

I was able to get logs of this after enabling sandboxing mode (Otherwise I couldn’t find the logs)

I confirmed that the built app that is running does have the ZoomAudioDevice.driver file at:  
/Users/me/src/MyApp/Bin/Release/myapp.app/Contents/PlugIns/ZoomAudioDevice.driver

Logs are here:

> **[aircover.app\_0.log](https://drive.google.com/file/d/1E76i3wYJo8g9bWGbfNL4q4Mrp4Kvf6Ig/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [October 13, 2021, 6:00pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/24 "2021-10-13T18:00:15Z")

</div>

Hi @KieranAC,

Thanks for providing that! We’ll investigate this and keep you updated as soon as we have any new information.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [October 14, 2021, 9:18pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/25 "2021-10-14T21:18:01Z")

</div>

Hi @KieranAC,

We have identified that the SDK does have some unexpected behavior if the driver was manually removed from a device. A fix has been identified and will be available in the next release of the SDK.

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [October 14, 2021, 10:25pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/26 "2021-10-14T22:25:05Z")

</div>

Thanks for looking into this. Do you know when the next SDK may be available?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [October 15, 2021, 9:02pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/27 "2021-10-15T21:02:58Z")

</div>

Hi @KieranAC,

You are very welcome! We are working on finalizing a hotfix release, so it should be available pretty soon. As always, for the most up-to-date release information you can check #new-releases or our [release notes](https://marketplace.zoom.us/docs/changelog).

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [October 26, 2021, 5:30pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/28 "2021-10-26T17:30:47Z")

</div>

@jon.zoom I was able to confirm that the latest SDK does fix the issue.

I am still have problems with packaging the driver with the app build.

Earlier in this thread you mentioned

> Looking into this further, the only change you should need to make is copying the `ZoomAudioDevice.driver` file into `${YOUR_PROJECT}/Contents/Plugins` .

Could you elaborate on this? Do you mean in the project directory? How does xcodebuild know to copy the file to the build product? If I follow this process, the built .app file does not contain the driver. Is there some other step?

The only way I was able to test this feature was to add a build phase to copy the driver to Content/PlugIns/ in the build output like this:

[![](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/a/1a5f8d00fb8977bb3c0470dcece86583db021385.png) ](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/a/1a5f8d00fb8977bb3c0470dcece86583db021385.png)

This is how I was able to test previously, and how I was able to test the new SDK.

The big problem I am having now though, is an xcode crash (meaning xcode itself is crashing) while attempting to upload this build for notarization. This only occurs if the audio driver is included in this way.

This thread seems to be related:

> [@How to install the ZoomAudioDevice.driver?](https://devforum.zoom.us/t/how-to-install-the-zoomaudiodevice-driver/51460/7):
>
> Hi @daves, I’ve followed up on this, and the only step required to add it to your project is to copy it over to the YourAppDirectory/Contents/Plugins path. You do not need to change any of the build phases in Xcode either. This should work regardless of which SDK package you are using. Assuming that this information does not fix your issue, can you please provide as much additional context around what expected behavior you are not seeing, and what steps have already been taken? Thanks!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [October 27, 2021, 4:57pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/29 "2021-10-27T16:57:20Z")

</div>

Hi @KieranAC,

That’s great to hear that the issue is resolved in the latest version!

> Could you elaborate on this? Do you mean in the project directory? How does xcodebuild know to copy the file to the build product? If I follow this process, the built .app file does not contain the driver. Is there some other step?

Including the driver in the project’s directory should be the only required step. This may be a long shot, but can you try removing the driver from your project, cleaning the build folder, and then re-adding it only by putting the file in the previously mentioned path?

> The big problem I am having now though, is an xcode crash (meaning xcode itself is crashing) while attempting to upload this build for notarization. This only occurs if the audio driver is included in this way.

Which version of Xcode are you currently running? And to clarify, is this crash happening when using the approach we have recommended, or after adding it to your build phases?

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [November 23, 2021, 10:33pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/30 "2021-11-23T22:33:59Z")

</div>

@jon.lieblich

I have made some progress but I am still getting error 3

Add the driver to source directory:

kieran@kierans-mbp-2 MyApp % ls Contents/Plugins/  
ZoomAudioDevice.driver

Add the driver to Xcode:

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/d/bde6f7922b3114fe1b26f65fa7fa9f6b8b5265a4.png)

At this point it is automatically added to build phases ‘Copy Bundle Resources’ phase:

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/e/6eac45b5284e88641ae338a49671098d24f6b944.png)

When I build the app, the binary file from:  
ZoomAudioDevice.driver/Contents/MacOS/ZoomAudioDevice

…is copied to the built app bundle in  
MyApp.app/Contents/Resources/ZoomAudioDevice

…automatically along with ‘ZoomAudioIcon.icns’.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/b/cb19190fc214f63fc32307e41affd75371fd3a15.png)

This seems like progress, but when testing audio share, I still get ‘Error 3’ just like before.

If I add a new build phase to copy ZoomAudioDevice.driver to /Content/PlugIns folder

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/f/af2986e006d8da60469c94c250a8e827e80250f0.png)

Then the AudioDevice.driver file shows up in the built application:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/b/8badc21b81dc8ff4edd1e629e96765cd5ab28d22.png)

Then the ‘Error 3’ goes away and audio sharing works:

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/6/d6559883386661a6369c325487ac6bef29259915.png)

But this method causes an xcode crash problem when trying to export the app from organizer:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/a/2a5e8b1e2c3ea69813b1e80304a173a7da1e2d82.png)  
(Xcode 13.1 - I believe I also tested on Xcode 12 with the same results)

**Summary:**

So it seems like the first method does copy the driver to the built app, but it copies it to /Contents/Resources for some reason instead of /Contents/PlugIns, and 'Error 3  
still occurs regardless.

Using the second method, you can force xcode to copy the file to /Content/PlugIns and the ‘Error 3’ goes away, but then there is some sort of issue with the Organizer/Notarization/Export process.

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [November 23, 2021, 11:01pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/31 "2021-11-23T23:01:43Z")

</div>

I also tried adding the ZoomAudioDevice.driver as a folder reference which results in the .driver directory being copied to /Contents/Resources:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/7/c7f6b893bbec552582844f64f921edb7d84bc3d2.png)

This still doesn’t launch the audio service and results in ‘Error 3’

The only way I have _ever_ seen audio share work is when the ZoomAudioDevice.driver is included in Content/PlugIns.

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [November 24, 2021, 4:06am UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/32 "2021-11-24T04:06:31Z")

</div>

I noticed that the official Zoom app does place the audio driver in the PlugIns folder:

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/9/795ce75bce0801fed07d2ebdb6d4abd3a270b598.png)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [November 29, 2021, 7:48pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/33 "2021-11-29T19:48:56Z")

</div>

Hi @KieranAC,

Thanks for the additional information. We will need to investigate this and get back to you. In the meantime, definitely let me know if you come across any new information.

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [December 21, 2021, 9:28pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/34 "2021-12-21T21:28:06Z")

</div>

@jon.zoom

I tried this again with the latest SDK (v5.9.0.3495). I have also updated Xcode since the last test, to 13.2 (13C90)

**I have been able to get this fully working, end to end, with these two updates**. I don’t know if there was a fix in the latest Zoom SDK or if it was a problem in Xcode or both, but I am able to get audio sharing to work **IF I include a copy plugins phase in my Xcode build.**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/e/ae050a6fd223c36517e7bc097dd69d4baa67396b.png)

If I try to do it the ‘other way,’ with your recommendation above - the driver file gets copied to the Resources folder in the end product build, and I still get an error 3 when attempting to share on a machine without the driver pre-installed.

If I do it ‘my way’ with the copy build phase, the driver gets placed in the PlugIns folder and everything now works file. Previously, this WAS working fine, functionally, but Xcode was crashing while attempting to notarize / upload an archived build. This doesn’t seem to be an issue any more, one way or another.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 22, 2021, 1:47am UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/35 "2021-12-22T01:47:10Z")

</div>

Hi @KieranAC,

That’s great to hear it’s fully working!

It’s strange that the copy plugins phase is required, as the sample app can successfully share audio with only the approach mentioned previously with Xcode 13.2. At this point, maybe we should take the “if it isn’t broken, don’t fix it” approach though. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [February 9, 2022, 10:29pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/36 "2022-02-09T22:29:29Z")

</div>

@jon.zoom

I think I am still seeing two issues with the previous fix

Setup steps for both issues:

```auto
// Remove ZoomAudioDevice Driver
sudo rm -r /Library/Audio/Plug-Ins/HAL/ZoomAudioDevice.driver

// Restart Core Audio
sudo /bin/launchctl kill SIGTERM system/com.apple.audio.coreaudiod || /usr/bin/killall coreaudiod
sudo launchctl stop com.apple.audio.coreaudiod
sudo launchctl start com.apple.audio.coreaudiod

// Start playing computer sound from some source (Youtube etc)

// Give app screen recording permissions in MacOS preferences

```

**Issue #1**

```auto
1) Complete setup steps above
2) Start app
3) Join meeting with app + some other device
4) Start *Desktop* screen share with audio enabled (see below code block for summary)

End result: Desktop share works. The audio driver installation window does not appear. No sound is shared. Restarting app / re-sharing doesn't work.

```

**Code used to start desktop share with audio**

```auto
[asController isAbleToShareComputerAudio]) // Returns YES
{
    zError = [asController enableShareComputerSound:YES] // No error, returns SUCCESS

    zError = [asController startMonitorShare:monitorID.unsignedIntValue];

```

**Issue #2**

```auto
1) Complete setup steps above
2) Start app
3) Join meeting with app + some other device
4) Start *Audio Share* with the app
5) The audio device driver installation popup *does* appear
6) Other client (zoom app on iPad for my test) says "Other user is sharing audio"

End result: No audio is shared, but the other client believes sharing has started.

```

If the app is stopped and restarted, then Issue #2 is resolved.

Issue #1 is resolved as long as the process from Issue #2 is completed at least once. Installation of the audio driver does not seem to work unless the user shares audio only at least once and then restarts the app.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 11, 2022, 5:38pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/37 "2022-02-11T17:38:18Z")

</div>

Hi @KieranAC,

Are you still using v5.9.0, or are you up to the latest version of the SDK? I know there have been some audio-related changes, so it is worth updating if you aren’t already on 5.9.3.

Thanks!

---

<div class="post-metadata">

**Author:** ![KieranAC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kieranac/32/35367_2.png) [@KieranAC](https://devforum.zoom.us/u/KieranAC)\
**Post date:** [February 11, 2022, 6:18pm UTC](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090/38 "2022-02-11T18:18:55Z")

</div>

The above was tested on 5.9.3.

The same issues may have been present in 5.9.1, but I didn’t test it as extensively. It’s easy to cover up both of those issues if you either have the audio driver installed previously, or if you attempt share using ‘Share Audio’ first. (Desktop share + audio would work after this)

[Previous page](https://devforum.zoom.us/t/service-failed-error-when-i-try-to-start-share-the-audio/38090.md?page=1)
