# Plugin fails to resolve symbol in libc in older version of Mac than the build host

**URL:** <https://forum.juce.com/t/plugin-fails-to-resolve-symbol-in-libc-in-older-version-of-mac-than-the-build-host/41083>\
**Category:** MacOSX and iOS\
**Created:** [August 4, 2020, 6:15pm UTC](https://forum.juce.com/t/plugin-fails-to-resolve-symbol-in-libc-in-older-version-of-mac-than-the-build-host/41083 "2020-08-04T18:15:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewshakinovsky](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@andrewshakinovsky](https://forum.juce.com/u/andrewshakinovsky)\
**Post date:** [August 4, 2020, 6:15pm UTC](https://forum.juce.com/t/plugin-fails-to-resolve-symbol-in-libc-in-older-version-of-mac-than-the-build-host/41083/1 "2020-08-04T18:15:55Z")

</div>

Hi all, hopefully someone can point me in the right direction here. Mac is not my primary OS, so this may be something simple for someone that knows Mac. I am building a plugin using a cmake project. I am building on Catalina. One of the user’s is using Mojave and is reporting that the plugin fails to load (both Au and VST3). For the VST3 library, this is the error that they are reporting to me. Does anyone have any ideas?:

Error loading /Library/Audio/Plug-Ins/VST3/Stochas.vst3/Contents/MacOS/Stochas: dlopen(/Library/Audio/Plug-Ins/VST3/Stochas.vst3/Contents/MacOS/Stochas, 262): Symbol not found: \_objc\_opt\_class  
Referenced from: /Library/Audio/Plug-Ins/VST3/Stochas.vst3/Contents/MacOS/Stochas (which was built for Mac OS X 10.15)  
Expected in: /usr/lib/libobjc.A.dylib  
in /Library/Audio/Plug-Ins/VST3/Stochas.vst3/Contents/MacOS/Stochas

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [August 5, 2020, 8:17pm UTC](https://forum.juce.com/t/plugin-fails-to-resolve-symbol-in-libc-in-older-version-of-mac-than-the-build-host/41083/2 "2020-08-05T20:17:53Z")

</div>

I think you would need to lower the deployment target.

> [@andrewshakinovsky](#):
>
> (which was built for Mac OS X 10.15)

hints that the deployment target was set to 10.15 i.e Catalina. Try to set it to something older (I think 10.9 is a good compromise), choosing older might not allow you to use all new features of the SDKs.

You don’t need to change the Base SDK setting normally.

---

<div class="post-metadata">

**Author:** ![andrewshakinovsky](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@andrewshakinovsky](https://forum.juce.com/u/andrewshakinovsky)\
**Post date:** [August 5, 2020, 8:49pm UTC](https://forum.juce.com/t/plugin-fails-to-resolve-symbol-in-libc-in-older-version-of-mac-than-the-build-host/41083/3 "2020-08-05T20:49:43Z")

</div>

Thank you for the response Daniel. Pardon my ignorance, but any idea how can I change the deployment target in this situation, given that I am using cmake. As I said my mac knowledge is limited.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [August 5, 2020, 9:12pm UTC](https://forum.juce.com/t/plugin-fails-to-resolve-symbol-in-libc-in-older-version-of-mac-than-the-build-host/41083/4 "2020-08-05T21:12:18Z")

</div>

I haven‘t moved to cmake yet, but google finds this on the cmake docs:  
[https://cmake.org/cmake/help/latest/variable/CMAKE\_OSX\_DEPLOYMENT\_TARGET.html](https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_DEPLOYMENT_TARGET.html)
