# AAX Release Build fails

**URL:** <https://forum.juce.com/t/aax-release-build-fails/37381>\
**Category:** General JUCE discussion\
**Created:** [January 29, 2020, 8:10pm UTC](https://forum.juce.com/t/aax-release-build-fails/37381 "2020-01-29T20:10:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanS](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@StefanS](https://forum.juce.com/u/StefanS)\
**Post date:** [January 29, 2020, 8:10pm UTC](https://forum.juce.com/t/aax-release-build-fails/37381/1 "2020-01-29T20:10:38Z")

</div>

Hi,

I’m working on a Mac with Xcode 11. I can successfully build my JUCE AAX plugin in Debug mode. But when I’m changing the build configuration to Release, the build fails with the following error code:

> ld: library not found for -lAAXLibrary\_libcpp
> 
> clang: error: linker command failed with exit code 1 (use -v to see invocation)

Does anyone have an idea what is wrong?

As it is working in Debug config, the AAX lib is obviously present, so maybe there is something wrong in the build settings but I don’t find anything.

I also tried the Juce example codes, it’s the same issue, so it’s not my code.

Many thanks,  
Stefan

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [January 29, 2020, 8:20pm UTC](https://forum.juce.com/t/aax-release-build-fails/37381/2 "2020-01-29T20:20:29Z")

</div>

> [@StefanS](#):
>
> As it is working in Debug config, the AAX lib is obviously present

Did you build the AAX lib twice? Once in Debug and once in Release.

---

<div class="post-metadata">

**Author:** ![StefanS](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@StefanS](https://forum.juce.com/u/StefanS)\
**Post date:** [January 29, 2020, 9:34pm UTC](https://forum.juce.com/t/aax-release-build-fails/37381/3 "2020-01-29T21:34:53Z")

</div>

Oh man 🤦‍♂️ stupid me …  
that was the problem. I only built the AAX lib in debug.  
Thanks McMartin!

---

<div class="post-metadata">

**Author:** ![kenobi](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kenobi](https://forum.juce.com/u/kenobi)\
**Post date:** [September 23, 2021, 2:39am UTC](https://forum.juce.com/t/aax-release-build-fails/37381/4 "2021-09-23T02:39:41Z")

</div>

Hi,

I have Xcode 12.4 and I cannot build my JUCE AAX plugin in debug mode. But I still get the exact same error. I do not know what is wrong.  
First I added the AAX plugin in projucer and when I run it it fails with over 20 errors. Then in Target AAX project and in Build Settings, I added arm64 and arm64e to the Excluded Architectures and now I get the same error.  
Any idea? Really appreciate it.

---

<div class="post-metadata">

**Author:** ![kenobi](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@kenobi](https://forum.juce.com/u/kenobi)\
**Post date:** [September 29, 2021, 1:34am UTC](https://forum.juce.com/t/aax-release-build-fails/37381/5 "2021-09-29T01:34:35Z")

</div>

My issue was fixed. I did not know that I had to build the AAX SDK. After doing it, it worked.
