Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsealed contents present in the root directory of an embedded framework

I am facing this issue when i try to sign the nwjs framework

codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\ Framework.framework

Can anyone please suggest what should i do

like image 438
Swati Avatar asked Jul 19 '17 12:07

Swati


Video Answer


2 Answers

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:

  1. 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.
  2. go back on command line to Versions/67.0.3396.87/nwjsFramework.framework.
  3. enter ln -s Versions/A/libnode.dylib.
  4. 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.

like image 81
Eran Asante-Asare Avatar answered Sep 17 '22 13:09

Eran Asante-Asare


I tried this :

Do not change any other info.plist except for the below mentioned app files and the error was gone.

  • Helper.app
  • app_mode_loader.app
  • nwjs.app [main app]

Also before signing the framework do

codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\ Framework.framework/Versions/A/nwjs\ Framework

then

codesign -f -v --deep -s '3rd Party Mac Developer Application: Company Name. (XXXXXXXXX)' --entitlements Child.plist hello.app/Contents/Versions/59.0.3071.115/nwjs\ Framework.framework
like image 29
Swati Avatar answered Sep 19 '22 13:09

Swati