# Build error on Mac

**URL:** <https://devforum.zoom.us/t/build-error-on-mac/29055>\
**Category:** Electron\
**Created:** [September 3, 2020, 2:47pm UTC](https://devforum.zoom.us/t/build-error-on-mac/29055 "2020-09-03T14:47:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dscottwiggins](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dscottwiggins/32/5123_2.png) [@dscottwiggins](https://devforum.zoom.us/u/dscottwiggins)\
**Post date:** [September 3, 2020, 2:47pm UTC](https://devforum.zoom.us/t/build-error-on-mac/29055/1 "2020-09-03T14:47:01Z")

</div>

**Description**  
When cloning the `zoom-sdk-electron` repo, and running `sh build_nodeaddon_mac.sh`, it errors with:

```auto
cp: cannot create directory '../../../../../../Bin/Mac/Release': No such file or directory

```

**Which version?**

> **[zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron)**
>
> Zoom Electron SDK. Contribute to zoom/zoom-sdk-electron development by creating an account on GitHub.

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. git clone [https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron)
2. cd zoom-sdk-electron
3. sh build\_nodeaddon\_mac.sh

**Screenshots**  
\*

 ![Screen Shot 2020-09-03 at 10.44.36 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8aaa65acbdc050212f0953c4accaa561d38e5322.jpeg)

**Additional context**  
MacBookPro 13 in 2019  
macOS 10.15.5  
electron v5.0.2  
node v12.14.1

---

<div class="post-metadata">

**Author:** ![richard1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/richard1/32/5472_2.png) [@richard1](https://devforum.zoom.us/u/richard1)\
**Post date:** [September 3, 2020, 5:23pm UTC](https://devforum.zoom.us/t/build-error-on-mac/29055/2 "2020-09-03T17:23:02Z")

</div>

I sometimes get this when building the mac (objective C) project, usually after switching build schemes - I just delete the whole /bin directory and all is happy. Not sure if this is related…

---

<div class="post-metadata">

**Author:** ![jthomerson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jthomerson/32/14768_2.png) [@jthomerson](https://devforum.zoom.us/u/jthomerson)\
**Post date:** [September 5, 2020, 6:28pm UTC](https://devforum.zoom.us/t/build-error-on-mac/29055/3 "2020-09-05T18:28:20Z")

</div>

I’m having the same problem, and I can’t figure out what the Zoom developers intend for that statement to do. It’s a relative path to a directory, but they have no idea where we cloned the repo, so how could they use a relative path? It it supposed to be in the root `/bin/mac/release`? Why is `Bin` uppercase if so?

Since this fails, I can’t run the demo. Did you ever figure it out?

---

<div class="post-metadata">

**Author:** ![jthomerson](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jthomerson/32/14768_2.png) [@jthomerson](https://devforum.zoom.us/u/jthomerson)\
**Post date:** [September 5, 2020, 8:32pm UTC](https://devforum.zoom.us/t/build-error-on-mac/29055/4 "2020-09-05T20:32:02Z")

</div>

Okay, I think I have it figured out:

The two cp commands that have the long relative path can be removed. They don’t seem to be needed.

Then, if you run into an issue with “image not found” when the native module is loaded, from the “demo” directory, you can run this command:

`$ install_name_tool -add_rpath @loader_path/./ZoomSDK ../sdk/mac/zoomsdk.node`

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [September 12, 2020, 2:03am UTC](https://devforum.zoom.us/t/build-error-on-mac/29055/5 "2020-09-12T02:03:55Z")

</div>

Hi @jthomerson,

Thanks for using Zoom SDK and glad to hear that you have found the solution. Yes, the commands

```auto
cp -Rf ./build/Release/zoomsdk.node.dSYM ../../../../../../Bin/Mac/Release
cp -Rf ./build/Release/zoomsdk_render.node.dSYM ../../../../../../Bin/Mac/Release 

```

could be removed and it won’t cause any issues. We will enhance this part in the next release.

Thanks!
