I've run into
dyld: could not load inserted library '/usr/local/lib/dgagent/libpreload.dylib' because no suitable image found. Did find:
file system sandbox blocked open() of '/usr/local/lib/dgagent/libpreload.dylib'
error with several applications - svnX (while trying to import directory, for example), SnailSVN (while trying to run Test during setup). Seems like this file system sandbox blocked open()
therefore is not application specific but rather my Mac is missing some settings.
Have anyone encountered the same issue and found the way around it?
On 10.15 and later, folders like the Desktop, Documents etc. require "Files and Folders access"
Two steps to setup the access:
System Preferences > Security & Privacy > Privacy > Full Disk Access > "add your app such as svnX"
System Preferences > Security & Privacy > Privacy > Files and Folders > "add your app such as svnX"
The comment from Richard Barber above saved my life. I also faced this issue (although with a different app and a different library) but essentially the same thing. Apple apps run is something called a Sandbox and hence cannot access a lot of locations. I tried adding the access to "Full Disk" and "Files and Folders" as specified in the above answer. I was able to add "Full Disk Access" but the "Files and Folder" thing was greyed out on my app in question (Microsoft Excel). So, that didn't work for me
Finally what worked is taking the entire folder of the library in question (in my case a mysql odbc driver) and copying it over to /Applications/Microsoft Excel.app/Contents/Frameworks/
TL;DR : copy the library in question over to the Frameworks folder in the directory of that application and then the application should be able to access it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With