# Xcode "build succeeded" but not VST3 created, window doesn't launch

**URL:** <https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786>\
**Category:** Audio Plugins\
**Created:** [April 13, 2023, 5:56pm UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786 "2023-04-13T17:56:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wdd](https://forum.juce.com/u/wdd)\
**Post date:** [April 13, 2023, 5:56pm UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/1 "2023-04-13T17:56:48Z")

</div>

Had used JUCE years ago, now trying to use it again. I’m getting stuck on the tutorial.

Mac OS X Ventura, M1 backbook.

Trying to create a basic VST plugin using this tutorial guide:  
[https://docs.juce.com/master/tutorial\_create\_projucer\_basic\_plugin.html](https://docs.juce.com/master/tutorial_create_projucer_basic_plugin.html)

But once Projucer creates the code and initial project, I click the “play” button in Xcode, the build succeeds, and … I’m not sure what I’m supposed to do next.

Questions

1. Shouldn’t I be able to “run” the plugin from Xcode and see the plugin window pop up?
2. Shouldn’t “building” the plugin cause a .vst or .vst3 file to get created in /Library/Audio/Plug-ins/ ? I looked and no file gets created there. Scanning with AudioPluginHost.jucer (out of process) doesn’t find anything either.

The only place I can find a .vst3 file being created is in `<project-folder>/Builds/MacOSX/build/Debug/TutorialVSTTryTwo.component/TutorialVSTTryTwo.vst3`, but the file is an “alias” (probably means a soft-link?). Image attached.

 ![Screenshot 2023-04-13 at 11.04.18 AM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/d/d3476f9e4dd2938d75a7c608cb9a47963714bf29.png)

Further, it seems that “Enable Plugin Copy Step” is enabled.

 ![Screenshot 2023-04-13 at 11.14.54 AM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/2/20065cec56b60823dcd0925a553953da68c193e8.png)

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![stephenk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephenk/32/15198_2.png) [@stephenk](https://forum.juce.com/u/stephenk)\
**Post date:** [April 13, 2023, 6:37pm UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/2 "2023-04-13T18:37:39Z")

</div>

You can’t “run” a plugin by itself. You need to run it inside a DAW that is attached as a process.

The easiest thing to use is the JUCE AudioPluginHost in the JUCE Extras folder. Compile it, then choose the executable in the Scheme’s Run \> Executable (this is an older version of XCode:

 ![xcode](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/8/8e6c0748d2ff71561e4e7f7763c35a2d5bc2b924.jpeg)

Then, it launches the APH when you run the debugger, and you can select and instantiate your plugin and debug it.

(Or, you can attach to a real DAW like Reaper or Logic and debug it in there…)

Yes, the .vst file you located is indeed an alias, and it should resolve to the Plugins folder. In the Finder, control-click and choose “show original”.

---

<div class="post-metadata">

**Author:** ![wdd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wdd](https://forum.juce.com/u/wdd)\
**Post date:** [April 13, 2023, 7:48pm UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/3 "2023-04-13T19:48:52Z")

</div>

OK, great so I am able to

1. find the .vst3 as you suggested, then add to APH to the flow editing window
2. Edit the Scheme with Product \> Edit Scheme, and set executable
3. Set a breakpoint and hit Run to Debug

But when this happens, all I see is the LLDB shell in the bottom of Xcode plus the variable values. This is super helpful for the code! I also hear my own typing echoing through the plugin to my laptop speakers.

But I don’t see the UI. Should I be seeing the plugin UI?

 ![Screenshot 2023-04-13 at 12.41.29 PM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/a/a359f2a2c1715da923c0767235aaae4750d3e8e5.jpeg)

I’d prefer not having to load up Ableton and scanning all my plugins every time I want to test something.

---

<div class="post-metadata">

**Author:** ![stephenk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephenk/32/15198_2.png) [@stephenk](https://forum.juce.com/u/stephenk)\
**Post date:** [April 13, 2023, 7:56pm UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/4 "2023-04-13T19:56:54Z")

</div>

double-click the plugin, or right-click and choose “Show plugin GUI” or “Show all parameters”.

---

<div class="post-metadata">

**Author:** ![ImJimmi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imjimmi/32/10843_2.png) [@ImJimmi](https://forum.juce.com/u/ImJimmi)\
**Post date:** [April 14, 2023, 10:22am UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/5 "2023-04-14T10:22:11Z")

</div>

You could also enable the “standalone” format that will build your plugin as its own standalone executable.

---

<div class="post-metadata">

**Author:** ![ImJimmi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/imjimmi/32/10843_2.png) [@ImJimmi](https://forum.juce.com/u/ImJimmi)\
**Post date:** [April 14, 2023, 10:23am UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/6 "2023-04-14T10:23:30Z")

</div>

> [@wdd](#):
>
> ![Screenshot 2023-04-13 at 11.04.18 AM](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/d/d3476f9e4dd2938d75a7c608cb9a47963714bf29.png)
> 
> Screenshot 2023-04-13 at 11.04.18 AM1928×822 201 KB

Looks like you’re already building standalone by this screenshot - you could just run the `.app` that’s below the `.vst3` you have selected here.

---

<div class="post-metadata">

**Author:** ![wdd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wdd](https://forum.juce.com/u/wdd)\
**Post date:** [April 20, 2023, 5:52am UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/7 "2023-04-20T05:52:17Z")

</div>

So all this does seem clear, but what I’m still confused about is how this lets me debug?

Here’s a screenshot. I am clicking “Run” with the play button in Xcode, but a couple of confusing things:

1. With my breakpoint, why don’t I see the variable “a=1” in the debugger pane?
2. Why does my `DEBUG()` message print twice instead of just once? I understand that there are two channels, but shouldn’t my breakpoint stop execution during the first iteration on the first channel?

 ![debugging with JUCE](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/2/22823f1991dadc3c995d2694f98fb372f2611f33.jpeg)

---

<div class="post-metadata">

**Author:** ![stephenk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephenk/32/15198_2.png) [@stephenk](https://forum.juce.com/u/stephenk)\
**Post date:** [April 20, 2023, 6:07am UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/8 "2023-04-20T06:07:04Z")

</div>

Down at the bottom left of the section that shows your variables values, you will see the word “auto”. This means it is automatically only showing variables that are being used (at the point you’re at). Since ‘a’ is not being used, you don’t see it. Change this to ‘local’ or “all” and ‘a’ should show up.

Regarding the double DBG: that’s puzzling, you are in a loop but as you say I would think it should only print once and stop during the first iteration.

---

<div class="post-metadata">

**Author:** ![wdd](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@wdd](https://forum.juce.com/u/wdd)\
**Post date:** [April 20, 2023, 11:35pm UTC](https://forum.juce.com/t/xcode-build-succeeded-but-not-vst3-created-window-doesnt-launch/55786/9 "2023-04-20T23:35:34Z")

</div>

Awesome - yes with “locals” I can see more.

But still not `a`! Even if I use it in an operation so that it’s not an “unused variable”.

 ![xcode juce debugging](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/3321215074ebf52044ec20253c344b016cf434ac.jpeg)

Anyway, I think this probably deserves it’s own topic so I’ll start another. Y’all have at least gotten me started with running the project which was the original goal!

The JUCE community is so nice and helpful. I’m blown away. Thanks !!
