Quantcast
Channel: 睿论坛 - 最新话题
Viewing all articles
Browse latest Browse all 5702

问题:Mac 软件重签名报错:illegal hardware instruction

$
0
0

@leon_wang wrote:

问题:如标题所述。
签名使用命令:
codesign -f -s "Mac Developer: xxxx (xxxxx)" --entitlements /Users/xxx/Desktop/entitlements.plist xx(程序的可执行文件)
问题复现过程:
如果用上述命令重签名没有沙盒的软件的话是没有问题的。但是如果被重签名的软件包含沙盒也就是entitlements.plist内包含:
com.apple.security.app-sandbox

则在/Applications/QQ.app/Contents/MacOS/xxx 时会出现:
illegal hardware instruction
请问有遇到过这个问题并解决的吗?
之所以想保留:
com.apple.security.app-sandbox

在entitlements.plist内是因为如果不保留的话,软件运行时会将资源文件写入~/Documents。觉得这样不合适。

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5702

Trending Articles