In my day job, I do a lot of debugging of apps that use libraries in non-standard locations. This has traditionally been performed by exporting DYLD_LIBRARY_PATH
in your environment and then debugging your app as normal.
|
|
Under El Capitan, dyld environment variables are purged when spawning processes, thanks to System Integrity Protection. This means that you’ll have to use lldb
to set the variable at debug-time.
|
|
If you always use the same shared library path, you might be able to make new aliases in your .lldbinit
.