xcode 无法打开,因为无法确认开发者的身份

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27563544/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 06:23:28  来源:igfitidea点击:

can't be opened because the identity of the developer cannot be confirmed

objective-cxcodemacosdaemoncode-signing

提问by Ravi

I have developed an application and daemon in Mac OSX and i have signed with developer id both Application and Daemon source in xcode. In daemon, i have signed each framework and packaged, and i have pkg to all using package installer. Now my app is .mpkg.

我已经在 Mac OSX 中开发了一个应用程序和守护程序,并且我已经在 xcode 中使用了应用程序和守护程序源的开发人员 ID 进行了签名。在守护进程中,我已经签署了每个框架并打包,并且我使用包安装程序为所有人提供了 pkg。现在我的应用程序是 .mpkg。

i have signed this mpkg also. and each package is also signed. i have check in terminal. it shows my developer id and i have checked everything is signed in my mpkg.

我也签了这个mpkg。并且每个包裹也都有签名。我在终端办理登机手续。它显示了我的开发人员 ID,我已经检查了所有内容都已在我的 mpkg 中签名。

I have release out of mac store.

我已经从 mac 商店发布了。

i have install without signed, then the mac says,

我没有签名就安装了,然后mac说,

Myapp.mpkg Can't be opened because it is unidentified developer

Myapp.mpkg 无法打开,因为它是身份不明的开发者

now change settings to "System Preferences... > Security & Privacy --> Mac App Store and identified developers" then i try to install my signed mpkg, the mac says now,

现在将设置更改为“系统偏好设置...> 安全和隐私 --> Mac App Store 和已识别的开发人员”然后我尝试安装我签名的 mpkg,mac 现在说,

"MyApp.mpkg can't be opened because the identity of the developer cannot be confirmed"

“MyApp.mpkg无法打开,因为无法确认开发者的身份”

see the both msg now, its shows now identity developer".

现在查看两个消息,它现在显示身份开发人员”。

i have googled. it says go to enable Open anyway in sequrity &privacy under Mac appstore and identiied deverloper" check below image

我用谷歌搜索过。它说在 Mac appstore 和 identiied deverloper 下以安全和隐私方式启用无论如何打开”检查下图

enter image description here

在此处输入图片说明

What is the use of this. Now my question is

这有什么用。现在我的问题是

1 .Is i'm signed mpkg properly.

2. If i signed properly and i'm valid developer, then why it ask permission in security page.

3. Is this confirm "Open Anyway" this msg whenever i try to install?

4. If i did this, next time this will not ask, so how can i disallow.

can you anybody clarify my doubt. I need to send it to client for those things about this. Thanks for Advance.

你能澄清我的疑问吗?我需要将其发送给客户以获取有关此内容的信息。感谢提前。

采纳答案by Tajinder singh

  1. Open 'System Preferences'
  2. Go to 'Security & Privacy' and tap on 'General' tab
  3. Click on 'Lock' icon which you can find on bottom left screen and type your administrator password.
  4. The last step is to choose 'Anywhere' under 'Allow apps downloaded from:' and then again click on 'Lock' icon.
  5. Now you can run any apps.
  1. 打开“系统偏好设置”
  2. 转到“安全和隐私”并点击“常规”选项卡
  3. 单击屏幕左下角的“锁定”图标,然后输入管理员密码。
  4. 最后一步是在“允许从以下位置下载应用程序”下选择“任何地方”,然后再次单击“锁定”图标。
  5. 现在您可以运行任何应用程序。