网守阻止看似有效的应用

时间:2016-04-06 22:56:56

标签: cocoa codesign

我有一个.prefPane应该安装到系统偏好设置中。当我双击它时,Gatekeeper阻止它说它不是来自已识别的开发者。

此错误发生在10.11.4上,但它适用于10.10.5。这两种操作系统都是全新的干净安装。

我在这里评论了TN2206: https://developer.apple.com/library/mac/technotes/tn2206/_index.html

在我干净的10.11.4系统上,我运行:

codesign --verify --deep --verbose=2 path/to/my.prefPane

并获取

My.prefPane: valid on disk
My.prefPane: satisfies its Designated Requirement

然后我跑:

spctl -a -t exec -vv path/to/my.prefPane

并获取

source=obsolete resource envelope
origin=Developer ID Application: MyCompany

然后

codesign -dv path/to/my.prefPane

返回

Executable=/My.prefPane/Contents/MacOS/MyPrefPane
Identifier=com.myidentifier
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=1798 flags=0x0(none) hashes=82+3 location=embedded
Signature size=8557
Timestamp=Apr 6, 2016, 9:09:52 AM
Info.plist entries=33
TeamIdentifier=MYTEAMCODE
Sealed Resources version=2 rules=12 files=520
Internal requirements count=1 size=228

如果我在主10.11.3上运行相同的文件,一切正常。这可能发生什么?该文件已在我的主10.11.3系统上签名。

0 个答案:

没有答案