# Plugin Copy Stage broken on Apple Silicon

**URL:** <https://forum.juce.com/t/plugin-copy-stage-broken-on-apple-silicon/42911>\
**Category:** Audio Plugins\
**Created:** [November 24, 2020, 9:01pm UTC](https://forum.juce.com/t/plugin-copy-stage-broken-on-apple-silicon/42911 "2020-11-24T21:01:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trickyflemming](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@trickyflemming](https://forum.juce.com/u/trickyflemming)\
**Post date:** [November 24, 2020, 9:01pm UTC](https://forum.juce.com/t/plugin-copy-stage-broken-on-apple-silicon/42911/1 "2020-11-24T21:01:43Z")

</div>

I’ve spent the day pulling my hair out trying to figure out why our plugins aren’t loading after UB2 compile on my DTK. Turns out, something is going awry during the plugin copy step on a CMake generated project.

Here’s what gets copied to my VST3 folder. It’s 62.1 MB:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/e/ea6676234d83d7a07a4131b6baf12a9370b19e01.png)

Here’s what is in the \_artefacts folder. It’s 62.6 MB:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/4/40d69565ed7681475a4009a5a08b0a25696fe358.png)

Now here’s the really weird part. The file that gets copied is not recognized as an executable inside the bundle. Here’s the VST3 folder copy:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/32f03bcddda865b2112819ba5996005223c082ce.png)

And here is the same file in the \_artefacts folder:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/7/71f1b8f27482956eab61beed579379af23326462.png)

EDIT: Implied it in the first sentence but forgot to explicitly mention it… the smaller, auto-copied binary doesn’t work. If I manually copy the \_artefacts folder binary over by hand, that binary works. I’ve deleted the VST3 folder binary every time to ensure that the \_artefacts binary is copying successfully.

EDIT 2: Okay, doing a side-by-side diff shows that the \_CodeSignature folder is not present in the auto-copied binary. Additionally, the main binary is different. Investigating…

---

<div class="post-metadata">

**Author:** ![trickyflemming](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@trickyflemming](https://forum.juce.com/u/trickyflemming)\
**Post date:** [December 1, 2020, 2:35pm UTC](https://forum.juce.com/t/plugin-copy-stage-broken-on-apple-silicon/42911/2 "2020-12-01T14:35:13Z")

</div>

Just bumping this. Anyone else seeing the copy stage happen before code signing on CMake projects? If so, what’s the best practice for fixing it?

---

<div class="post-metadata">

**Author:** ![otristan](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@otristan](https://forum.juce.com/u/otristan)\
**Post date:** [December 1, 2020, 4:00pm UTC](https://forum.juce.com/t/plugin-copy-stage-broken-on-apple-silicon/42911/3 "2020-12-01T16:00:17Z")

</div>

> [@CMake, COPY\_PLUGIN\_AFTER\_BUILD and custom POST\_BUILD](https://forum.juce.com/t/cmake-copy-plugin-after-build-and-custom-post-build/42717/2):
>
> Maybe the best would be to have a manual command which can be setup after my own command ? \_juce\_copy\_after\_build\_all with no argument that uses all the predefine stuff that I can call at the end of my cmake so it’s executed last.
