2017-07-19 14 views
11

Tôi đang phải đối mặt với vấn đề này khi tôi cố gắng để ký vào khuôn khổ nwjsnội dung niêm phong hiện diện trong thư mục gốc của một khung nhúng

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 

bất cứ ai có thể vui lòng đề nghị những gì tôi nên làm gì

+0

Bạn đã tìm thấy câu trả lời? – Arti

+0

Bạn đã xem https://stackoverflow.com/questions/25950544/codesign-what-are-unsealed-contents chưa? –

+0

@ 63d26a1c có, không có gì đã giúp – Arti

Trả lời

1

Tôi cố gắng này:

Không thay đổi bất kỳ khác info.plist ngoại trừ các tệp ứng dụng được đề cập dưới đây và lỗi đã biến mất.

  • Helper.app
  • app_mode_loader.app
  • nwjs.app [ứng dụng chính]

Ngoài ra trước khi ký hợp khuôn khổ làm

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 

sau đó

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

bạn đã làm điều đó theo cách thủ công hoặc với MAS python script? – Arti

+0

Không giúp ích cho tôi – Arti

+0

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

0

Tôi đã tạo một tập lệnh nhỏ giúp bạn. Thư mục 60.0.3112.113 khác với phiên bản.

xattr là rất quan trọng để loại bỏ không cho phép nội dung cũng phải cẩn thận với tên của bạn thực thi

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" 
Các vấn đề liên quan