0%

修复 Signed With Custom Identity or Adhoc

有的时候安装软件,软件会启动不了。

我在terminal中启动软件,有如以下提示:

1
2
3
4
5
6
/Applications/Application.app ; exit;
dyld: Library not loaded: @rpath/Sparkle.framework/Versions/A/Sparkle
Referenced from: /Applications/Application.app
Reason: no suitable image found. Did find:
/Applications/Application.app/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/A/Sparkle: code signature in (/Applications/Application.app/Contents/MacOS/../Frameworks/Sparkle.framework/Versions/A/Sparkle) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
[1] 15203 abort /Applications/Application.app

从错误信息中看,应该是软件的签名出现了问题,只需要安装Xcode后,对软件重现签名就好了:

1
sudo codesign -f -s - --deep /Applications/Application.app

The Why·Liam·Blog by WhyLiam is licensed under a Creative Commons BY-NC-ND 4.0 International License.

WhyLiam创作并维护的Why·Liam·Blog采用创作共用保留署名-非商业-禁止演绎4.0国际许可证

本文首发于Why·Liam·Blog (https://blog.naaln.com),版权所有,侵权必究。

本文永久链接:https://blog.naaln.com/2019/04/fix-signature/

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!