rbframework.dylib failed with errorno=13

I have an app which is in lauchd, it runs fine (its a service compiled exe), when its launched by launchd it gives me -:
\
Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
Library not loaded: @rpath/rbframework.dylib
Referenced from: /Library/Application Support/myprog/myprog
Reason: no suitable image found. Did find:
/Library/Application Support/myprog/myprog Libs/rbframework.dylib: open() failed with errno=13
/Library/Application Support/myprog/myprog Libs/rbframework.dylib: stat() failed with errno=1

It then re-runs it and then keeps spawning the program even though I have a mutex to block it.

Any ideas anyone?

There’s a permissions issue when the loader is trying to read /Library/Application Support/myprog/myprog Libs/rbframework.dylib.