-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS - library validation: library load disallowed by system policy #140
Comments
The click on "?" in a pop-up, shows a new pop-up: SAP lib file is "corrupted" by fix script, changing $ codesign --verify libsapnwrfc.dylib
libsapnwrfc.dylib: invalid signature (code or signature have been modified)
In architecture: x86_64 It seems Apple security policy changed again, preventing the changed lib to be loaded. Which macOS version are you using? I am on 10.15.4 but installed and "fixed" SAP 7.56 libs with older Darwin version. These libs still work for me but if I download and fix the same lib from SAP portal, I am getting the same error. The funny thing is that downloaded and fixed libs, which do not work, are binary identical to currently working libs, showing the same invalid signature (only downloaded and fixed before). As a workaround you can:
$ cd lib\binding
$ install_name_tool -change @rpath/libsapnwrfc.dylib @loader_path/libsapnwrfc.dylib sapnwrfc.node
$ install_name_tool -change @rpath/libsapucum.dylib @loader_path/libsapucum.dylib sapnwrfc.node To verify: $ otool -L sapnwrfc.node (py380) master ✱
sapnwrfc.node:
@rpath/sapnwrfc.node (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libsapnwrfc.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libsapucum.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 902.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
$ export DYLD_FALLBACK_LIBRARY_PATH=$SAPNWRFC_HOME/lib |
The loader_path is apparently fixed in SAP NWRFC SDK and post-install script not required any more. The README is updated with simplified installation method: https://github.com/SAP/node-rfc#macos. |
More testing shows that DYLD env vars are purged in spawned child processes. The standard installation method in README works therefore for single processes only, which is practically unusable with NodeJS. Possible solutions are investigated together with NWRFC SDK experts. |
I am facing the same problem. I am on macOS 10.15.5 |
Please use NWRFC SDK PL5 if you have it. |
If anyone getting the following issue in Mac, then please try the below option. Error Terminal This should enable the app from the undentified developers, please be aware that this relaxes the security & privacy settings of your Mac, so enable it with caution. |
Can you please give me the NWRFC SDK PL5 for mac os x,my Email Address is [email protected]. |
Problem with opening file libsapjco3.dylib On MacOS 15.0.1 Sequoia, you have run this command in Terminal: sudo spctl --master-disable Then open System Settings, and Privacy & Security. On this page scroll down to the tab Security and you will see your .dylib file with button open anyway. Click it and done Allowing apps from unidentified developers relaxes your Mac's security. Use this option wisely! |
I followed the installation steps, did copy the nwrfcsdk to the standard path
/usr/local/sap/nwrfcsdk
and executed successfully the paths_fix.sh script.Error
When I require node-rfc lib, a popup is shown with the following error message:
“libsapnwrfc.dylib” is damaged and can’t be opened. You should move it to the Bin.
Console output
The text was updated successfully, but these errors were encountered: