# Post build step on MacOS no longer working

**URL:** <https://forum.juce.com/t/post-build-step-on-macos-no-longer-working/57285>\
**Category:** Audio Plugins\
**Created:** [August 3, 2023, 2:45am UTC](https://forum.juce.com/t/post-build-step-on-macos-no-longer-working/57285 "2023-08-03T02:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcollins78728](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mcollins78728](https://forum.juce.com/u/mcollins78728)\
**Post date:** [August 3, 2023, 2:45am UTC](https://forum.juce.com/t/post-build-step-on-macos-no-longer-working/57285/1 "2023-08-03T02:45:28Z")

</div>

I’m trying to update a plugin that I haven’t built since 2015 or so. I updated to version 6.0.4 (from version 3.0.2 I think) and I’m able to get the code to compile, but the post build script fails. After some investigating it appears that the script expects the VST3 plugin to be a folder, while the compile stage is producing an actual VST3 file.

Here is the snippet that’s failing.

```auto
if [$copyVST3 -gt 0]; then
  VST3Dir=~/Library/Audio/Plug-Ins/VST3
  mkdir -p "$VST3Dir"
  VST3=$VST3Dir/$PRODUCT_NAME.vst3
  if [-d "$VST3"]; then
    rm -r "$VST3"
  fi

  echo "Copying $original to VST3 folder $VST3 ..."

  cp -r "$original" "$VST3"
  sed -i "" -e 's/TDMwPTul/BNDLPTul/g' "$VST3/Contents/PkgInfo"
  sed -i "" -e 's/TDMw/BNDL/g' "$VST3/Contents/$INFOPLIST_FILE"
  codesign -s "<certificate>" "$VST3"

fi

```

It appears that the method for creating the VSTs has changed at some point but I’m not sure how to get the script working again. Any help would be appreciated.

Mike

---

<div class="post-metadata">

**Author:** ![lcapozzi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/lcapozzi/32/10960_2.png) [@lcapozzi](https://forum.juce.com/u/lcapozzi)\
**Post date:** [August 3, 2023, 7:28am UTC](https://forum.juce.com/t/post-build-step-on-macos-no-longer-working/57285/2 "2023-08-03T07:28:11Z")

</div>

As far as I remember, with the latest JUCE versions VST3 are now built as bundles (similar to AAX). I’m still on 7.0.3 and VST3 are still single files, so I can’t help more with this.

---

<div class="post-metadata">

**Author:** ![mcollins78728](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mcollins78728](https://forum.juce.com/u/mcollins78728)\
**Post date:** [August 3, 2023, 1:04pm UTC](https://forum.juce.com/t/post-build-step-on-macos-no-longer-working/57285/3 "2023-08-03T13:04:03Z")

</div>

I’m actually still on 6.0.4. I haven’t been able to move to 7 yet because of other issues. I’m hoping to get this resolved first.
