2017-07-19 35 views
11

的根目錄下啓封內容時,我嘗試登錄該nwjs框架出現在我面臨這個問題嵌入式框架

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 

任何人都可以請建議我應該怎麼辦

+0

你找到答案了名的可執行? – Arti

+0

你看看https://stackoverflow.com/questions/25950544/codesign-what-are-unsealed-contents? – 2017-08-08 15:11:19

+0

@ 63d26a1c是的,沒有什麼幫助 – Arti

回答

1

我嘗試這樣做:

不要更改任何其他的info.plist除了下面提到的應用程序文件和錯誤不見了。

  • Helper.app
  • app_mode_loader.app
  • nwjs.app [主要的應用程序]

另外簽署框架做

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 

然後

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 
之前
+0

您是手動執行還是使用MAS python腳本? – Arti

+0

對我沒有幫助 – Arti

+0

Crashlog:https://pastebin.com/8nF76177 – Arti

0

我製作了一個小腳本,可以幫助你。文件夾60.0.3112.113因版本而異。

xattr重要的是要去掉不允許內容 也小心你

app="yourapp.app" 
identity="Developer ID Application: Yourname...." 

echo "### removing unnecessary files" 
rm -f "$app/Icon^M" #remove if exists 
rm -r -f "$app/.idea" #remove if exists 
xattr -cr "$app" #remove all unallowed files 

echo "### signing libraries" 
#codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/Libraries/exif.so" 
#codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/libffmpeg.dylib" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/libnode.dylib" 

echo "### signing frameworks" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/nwjs Framework" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/Helpers/crashpad_handler" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/timeBro Helper.app/Contents/MacOS/timeBro Helper" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/timeBro Helper.app/" 
codesign --force --verify --sign "$identity" "$app/Contents/Versions/60.0.3112.113/nwjs Framework.framework/helpers/crashpad_handler" 

echo "### sing osx folder" 
codesign --force --verify --sign "$identity" "$app/Contents/MacOS/yourapp" #be careful here should be the exact name of your executably 

echo "### signing app" 
codesign --force --verify --sign "$identity" "$app" 

echo "### verifying signature" 
codesign -vv -d "$app"