2

在成功对我的应用程序进行了十几次公证并且运行良好之后,它现在顺利通过公证,然后在启动时崩溃:

Dyld Error Message:
  Library not loaded: @loader_path/../Frameworks/ShortcutRecorder.framework/Versions/A/ShortcutRecorder
  Referenced from: /Applications/Vitamin-R 3.app/Contents/MacOS/Vitamin-R 3
  Reason: no suitable image found.  Did find:
    /Applications/Vitamin-R 3.app/Contents/MacOS/../Frameworks/ShortcutRecorder.framework/Versions/A/ShortcutRecorder: code signing blocked mmap() of '/Applications/Vitamin-R 3.app/Contents/MacOS/../Frameworks/ShortcutRecorder.framework/Versions/A/ShortcutRecorder'
    /Applications/Vitamin-R 3.app/Contents/MacOS/../Frameworks/ShortcutRecorder.framework/Versions/A/ShortcutRecorder: code signing blocked mmap() of '/Applications/Vitamin-R 3.app/Contents/MacOS/../Frameworks/ShortcutRecorder.framework/Versions/A/ShortcutRecorder'
    /Applications/Vitamin-R 3.app/Contents/MacOS/../Frameworks/ShortcutRecorder.framework/Versions/A/ShortcutRecorder: stat() failed with errno=1
    file system relative paths not allowed in hardened programs

问题是我不确定框架的运行时路径到底在哪里确定。我将框架保存在~/Libary/Frameworks/我的开发机器上,但随后它被复制到应用程序包中,我不太确定是什么决定了运行时的路径..

任何帮助,将不胜感激。

4

2 回答 2

0

这可能是一个代码签名证书问题......通过以下方式修复它:

打开钥匙串访问:我的证书>“右键单击”证书>获取信息>信任>使用此证书时>使用系统默认值

于 2019-10-17T13:03:41.330 回答
0

我有完全相同的问题。解决方案是将框架也添加到“复制文件”构建步骤中。在那里,您可以将目的地定义为“框架”。

于 2020-05-18T19:12:35.113 回答