I had the same issue trying to sign my nwjs app I received this message:
"Contents/Versions/67.0.3396.87/nwjs Framework.framework: unsealed contents present in the root directory of an embedded framework"
I solved this by doing the following steps:
- move Versions/67.0.3396.87/nwjsFramework.framework/libnode.dylib into the A folder located Versions/67.0.3396.87/nwjsFramework.framework/Versions/A/libnode.dylib.
- go back on command line to Versions/67.0.3396.87/nwjsFramework.framework.
- enter ln -s Versions/A/libnode.dylib.
- try sign again after this.
From what I read some files in the embedded framework folder should sit inside folder in order to be able to sign the code. so the steps above move the file to the required folder and then step 3 create a symlink folder for the file we moved.
This worked for me, hope it will help you solve your problem or whoever read this.