Thank you, Quinn for your in-depth steps. I tried steps 1 through 6 locally and they worked, so I had another look at the libraries I'd been given.
The problem was, they had their quarantine flag set (because they emanated from a .zip file from my vendor).
If I use Finder or cp to copy these files, the quarantine flag is preserved, but it seems to be removed if Xcode copies the files in a Copy Bundle Resources phase, which is why the tool linked and ran when it was inside a folder in an app bundle - nothing to do with the app bundle, rather a side effect of using Xcode to copy the files.
Does the forum allow one to accept two answers to a problem?
Topic:
Code Signing
SubTopic:
General
Tags: