# SOLVED: AU gives Rez exit code 2 with JUCE 5

**URL:** <https://forum.juce.com/t/solved-au-gives-rez-exit-code-2-with-juce-5/22133>\
**Category:** Audio Plugins\
**Created:** [April 30, 2017, 8:08am UTC](https://forum.juce.com/t/solved-au-gives-rez-exit-code-2-with-juce-5/22133 "2017-04-30T08:08:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvesco](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bvesco/32/1856_2.png) [@bvesco](https://forum.juce.com/u/bvesco)\
**Post date:** [April 30, 2017, 8:08am UTC](https://forum.juce.com/t/solved-au-gives-rez-exit-code-2-with-juce-5/22133/1 "2017-04-30T08:08:15Z")

</div>

Just upgraded my playground to JUCE 5 and am seeing this “Rez exit code 2” when trying to compile to AU. Anyone have an idea?

> Command /Applications/Xcode.app/Contents/Developer/usr/bin/Rez failed with exit code 2

---

<div class="post-metadata">

**Author:** ![bvesco](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bvesco/32/1856_2.png) [@bvesco](https://forum.juce.com/u/bvesco)\
**Post date:** [April 30, 2017, 8:41am UTC](https://forum.juce.com/t/solved-au-gives-rez-exit-code-2-with-juce-5/22133/2 "2017-04-30T08:41:29Z")

</div>

Solved.

I had gotten a custom value in the Projucer field for **Plugin AU Main Type** and it was causing the failure. I deleted the custom value which allows it to default to a good value. This allowed everything to work again.
