# MacOS - initSDK is giving error code 5

**URL:** <https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280>\
**Category:** macOS\
**Tags:** video-sdk\
**Created:** [June 4, 2024, 1:16pm UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280 "2024-06-04T13:16:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi8x](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ravi8x/32/20091_2.png) [@ravi8x](https://devforum.zoom.us/u/ravi8x)\
**Post date:** [June 4, 2024, 1:16pm UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/1 "2024-06-04T13:16:17Z")

</div>

Hello

We are trying to update our Mac OS Zoom SDK to **6.0.10.34840**. While doing so we made sure that all the steps are followed. But when we tried to initialise the SDK, it is always giving us error code 5. Below is the code we have tried.

```auto
let zoomSDK = ZoomSDK.shared()
let params = ZoomSDKInitParams()
params.enableLog = true
params.needCustomizedUI = false
params.zoomDomain = "https://zoom.us"
        
let res = zoomSDK?.initSDK(with: ZoomSDKInitParams())
print("Init Result: \(res?.rawValue)")

```

This is printing below. At this point, auth service is also nil.

```auto
Init Result: Optional(5)

```

We have tried this in a fresh project too, but the result is same. Below are the screenshots of our project configuration. We have compared everything multiple times with the Sample Project.

1. Downloaded and moved Zoom SDK to project folder.
2. Re-signed all the .app files with our team ID.

```auto
codesign --force --verify --timestamp --verbose --options=runtime --sign "TEAM ID HERE" ZoomSDK/*.app

```

1. Added all files to **Frameworks, Libraries and Embedded Content**. (Total 64 files are added)  

2. Under **Build Phases → Link Binary with Libraries** added required files. (Total 10 files added)  

3. Under **Build Phases → Copy Files** , added all the SDK files. (Total 64 files added)  

4. Under **Build Phases → Copy Files** , added **ZoomAudioDevice.driver**  

After this, tried running the project and the initSDK is giving us the error code 5.

Kindly help us resolving this issue as this is a blocker to our release.

Thank You

---

<div class="post-metadata">

**Author:** ![adminwise](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/adminwise/32/30524_2.png) [@adminwise](https://devforum.zoom.us/u/adminwise)\
**Post date:** [June 5, 2024, 6:06am UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/2 "2024-06-05T06:06:34Z")

</div>

We’re also facing this issue. Any solution for this?

---

<div class="post-metadata">

**Author:** ![ug911](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ug911/32/60342_2.png) [@ug911](https://devforum.zoom.us/u/ug911)\
**Post date:** [June 5, 2024, 6:07am UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/3 "2024-06-05T06:07:59Z")

</div>

This issue is happening with us as well. Any solution for this?

---

<div class="post-metadata">

**Author:** ![mallikarjun](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mallikarjun/32/49650_2.png) [@mallikarjun](https://devforum.zoom.us/u/mallikarjun)\
**Post date:** [June 5, 2024, 6:14am UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/4 "2024-06-05T06:14:20Z")

</div>

Facing same issue. Any solution?

---

<div class="post-metadata">

**Author:** ![utkarsh\_gupta](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/utkarsh_gupta/32/60344_2.png) [@utkarsh\_gupta](https://devforum.zoom.us/u/utkarsh_gupta)\
**Post date:** [June 5, 2024, 6:16am UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/5 "2024-06-05T06:16:53Z")

</div>

What is the solution for this issue? It is hampering our roadmap. Please assist.

---

<div class="post-metadata">

**Author:** ![richardpiazza](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richardpiazza/32/58829_2.png) [@richardpiazza](https://devforum.zoom.us/u/richardpiazza)\
**Post date:** [June 7, 2024, 6:08pm UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/6 "2024-06-07T18:08:57Z")

</div>

This could be related: [Troubleshooting Video SDK initialization on macOS - #3 by richardpiazza](https://devforum.zoom.us/t/troubleshooting-video-sdk-initialization-on-macos/108171/3)

I found that the Init Param `logFilePrefix` is required. Initialization will fail without it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 8, 2024, 4:09am UTC](https://devforum.zoom.us/t/macos-initsdk-is-giving-error-code-5/111280/7 "2024-07-08T04:09:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
