【发布时间】:2017-05-26 20:59:08
【问题描述】:
我已经使用电子编写了一个应用程序并对其进行了签名。
我已确认我已使用codesign -dvvv 命令正确签名:
Executable=/Volumes/MyApp/MyApp.app/Contents/MacOS/MyApp
Identifier=com.example.my-app
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=285 flags=0x0(none) hashes=3+3 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CandidateCDHash sha256=exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hash choices=sha1,sha256
CDHash=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Signature size=8925
Authority=Developer ID Application: Example, LLC (XXXXXXXXX)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=May 24, 2017, 4:30:26 PM
Info.plist entries=21
TeamIdentifier=XXXXXXXXXX
Sealed Resources version=2 rules=13 files=10
Internal requirements count=1 size=192
然而,当我的同事从互联网上下载它进行测试时,他收到了以下警告:
"MyApp" is an application downloaded from the Internet. Are you sure you want to open it?
尽管从设置中的“安全和隐私”屏幕中选择了“Mac App Store 和已识别的开发者”,但还是会出现这种情况。
根据对 Gatekeeper 的描述:
https://support.apple.com/en-us/HT202491
我不希望收到该警告。
我可以在构建或分发应用程序的方式上进行哪些更改,以使用户不会收到该警告?我们的用户根本不懂技术,所以任何警告信息都会让我们的手机响起。
【问题讨论】: