Hi Thanks for the helpful comment about hardened runtime. this worked for me so I tried turning back on all the bits of hardened runtime and then turning them off one by one
The actual bit of hardened runtime that you need to disable in Xcode is
Disable Library Validation
This says it "allows an application to load plug ins or frameworks signed by other developers" which seems to make sense.