# Building error Juce Plugin Host in Xcode

**URL:** <https://forum.juce.com/t/building-error-juce-plugin-host-in-xcode/51500>\
**Category:** Getting Started\
**Created:** [May 18, 2022, 10:35am UTC](https://forum.juce.com/t/building-error-juce-plugin-host-in-xcode/51500 "2022-05-18T10:35:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarahwedin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sarahwedin/32/13447_2.png) [@sarahwedin](https://forum.juce.com/u/sarahwedin)\
**Post date:** [May 18, 2022, 10:35am UTC](https://forum.juce.com/t/building-error-juce-plugin-host-in-xcode/51500/1 "2022-05-18T10:35:11Z")

</div>

Hi,  
I’m trying to build the JUCE Plugin Host (as standalone plugin) in Xcode, following the _Set up plug-in debugging_ instructions of the tutorial:  
[https://docs.juce.com/master/tutorial\_create\_projucer\_basic\_plugin.html](https://docs.juce.com/master/tutorial_create_projucer_basic_plugin.html)

Upon building the framework code, this error code appears:

> Static\_assert failed “You are trying to use START\_JUCE\_APPLICATION in an audio plug-in. Define JUCE\_USE\_CUSTOM\_PLUGIN\_STANDALONE\_APP=1 if you want to use a custom standalone target app.”

I’m on JUCE version 6.1.6. How do I resolve it? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [May 19, 2022, 4:15pm UTC](https://forum.juce.com/t/building-error-juce-plugin-host-in-xcode/51500/2 "2022-05-19T16:15:36Z")

</div>

> [@sarahwedin](#):
>
> I’m trying to build the JUCE Plugin Host (as standalone plugin)

> [@sarahwedin](#):
>
> `You are trying to use START_JUCE_APPLICATION in an audio plug-in`

A standalone plugin is a convenient wrapper to create a standalone audio application from a plugin project by adding auto generated standalone application code around your plugin project. A plugin is always a dynamic library intended to extend the functionality of some host application at runtime. The standalone plugin target basically creates a very limited host application, that always loads one instance of your plugin.

However, you cannot go the other way round and put a standalone application into a plugin. Now the JUCE Plugin Host is implemented as a standalone application, so wrapping it into a plugin project will fail – even if you take a standalone plugin project 😉 In any case, what’s your goal by building the plugin host as standalone plugin instead just building the standalone application?

---

<div class="post-metadata">

**Author:** ![sarahwedin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sarahwedin/32/13447_2.png) [@sarahwedin](https://forum.juce.com/u/sarahwedin)\
**Post date:** [May 26, 2022, 11:11am UTC](https://forum.juce.com/t/building-error-juce-plugin-host-in-xcode/51500/3 "2022-05-26T11:11:23Z")

</div>

Thanks a million for the very informative answer. I understand now that my logic was a bit upside-down ☺

As my main goal is understanding the ways in and around the framework (and having functional builds, ofc), the issue resolved now. So thanks again!! @PluginPenguin

Wish you a good day! ☀
