Copy files to frameworks folder not working

I’m really confused about what is happening when I debug and build an iOS app.
I have added a copy files step to my build process that includes copying a framework to the Frameworks folder.
It ends up copying to the root of the application bundle.
Am I not understanding something or is this a bug?

Did you put it before or after the build and/or sign step ?

I’d be putting it after the build but before signing.

The copy files step was not updated when we made the plugin changes in 2020r2. I suggest selecting App Folder and then typing Frameworks into the sub folder field for now.

Well that works, however, only when running in the debugger. If I build I get a lengthy error message that looks like this (below)
And yes, I did the copy after build and before signing.
If I put the framework in question in the root it all compiles fine.

The operation couldn’t be completed. /Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/MBS_Main_Registration_Plugin_20440.framework: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/MBS_Main_Registration_Plugin_20440.framework/MBS_Main_Registration_Plugin_20440: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/MBS__Nix_Nix_Plugin_20465.framework: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/MBS__Nix_Nix_Plugin_20465.framework/MBS__Nix_Nix_Plugin_20465: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/MBS_Images_LCMS2_Plugin_20440.framework: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/MBS_Images_LCMS2_Plugin_20440.framework/MBS_Images_LCMS2_Plugin_20440: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/NixFramework.framework: replacing existing signature

/Users/chrishalford/Documents/Development/SpotOn Mobile/Builds - SpotOn Color/iOS/SpotOn Color.app/Frameworks/NixFramework.framework/_CodeSignature: bundle format unrecognized, invalid, or unsuitable

I made feedback case 63702 asking to provide more details on the signing.