Macos 已成功进行代码签名的应用程序无法通过Gatekeeper

Macos 已成功进行代码签名的应用程序无法通过Gatekeeper,macos,code-signing,osx-gatekeeper,Macos,Code Signing,Osx Gatekeeper,我正在尝试使用codesign命令行工具对我的应用程序进行签名: codesign --deep -v -f -s "Developer ID Application: Xxxxxxx Xxxxxxxxxxx (XXXXXXXXXX)" ./MyApp.app 结果似乎是成功了: ./MyApp.app: signed app bundle with Mach-O thin (x86_64) [co.mycompany.myapp] 在我朋友的Mac电脑上,系统向我们保证一切正常: $ co

我正在尝试使用codesign命令行工具对我的应用程序进行签名:

codesign --deep -v -f -s "Developer ID Application: Xxxxxxx Xxxxxxxxxxx (XXXXXXXXXX)" ./MyApp.app
结果似乎是成功了:

./MyApp.app: signed app bundle with Mach-O thin (x86_64) [co.mycompany.myapp]
在我朋友的Mac电脑上,系统向我们保证一切正常:

$ codesign -vv --deep-verify ./MyApp.app 
./MyApp.app: valid on disk
./MyApp.app: satisfies its Designated Requirement

$ spctl --assess --type execute --verbose ./MyApp.app 
./MyApp.app: accepted
但我仍然在执行应用程序时收到一个奇怪的消息框:

无法打开“MyApp.app”,因为无法确认开发人员的身份。您的安全首选项只允许安装Mac App Store中的应用程序和已识别的开发人员

我做错了什么?如何摆脱那个奇怪的守门员留言框

其他详细信息(在我朋友的Mac电脑上):


嘿,你解决问题了吗?问题是在Console.app应用程序的帮助下发现的@使用的动态库的可执行路径错误。解决方案:安装_name_工具-id libantlr4-runtime.dylib MyApp.app/Contents/Frameworks/libantl4-runtime.dylib安装_name_工具-change libantl4-runtime.dylib@executable_path/。/Frameworks/libantl4-runtime.dylib MyApp.app/Contents/MacOS/AdCelWizard/usr/bin/codesign-deep-force-sign“开发者id应用程序:Myname myurname(yyyyyyyy)“/Users/myname/Documents/MyApp.app
$ codesign -dvvv ./MyApp.app 
Executable=.../MyApp
Identifier=co.mycompany.myapp
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=3983 flags=0x0(none) hashes=119+3 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha1=52ef9b732b1bbde8a6ec48ca5c951c25d1daee61
CandidateCDHash sha256=eec891344210e1a3dce69900bfbb18e69efc1247
Hash choices=sha1,sha256
CDHash=eec891344210e1a3dce69900bfbb18e69efc1247
Signature size=8927
Authority=Developer ID Application: Xxxxxxxxx Xxxxxxxxxxxxxx (XXXXXXXXXX)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=06 Feb 2017 08:15:35
Info.plist entries=9
TeamIdentifier=YVWF5WN7EA
Sealed Resources version=2 rules=13 files=22
Internal requirements count=1 size=176