无法分发Mac命令行工具

时间:2023-01-22 21:03:49

I've created a simple command line tool with Xcode that we need to use internally in our company and distribute to clients.

我用Xcode创建了一个简单的命令行工具,我们需要在公司内部使用并分发给客户。

I've archived this tool using almost every type of certificate possible "Mac Developer", "Developer ID Application", "Mac App Distribution", etc. but when this tool is opened in any other machine, the user is faced with the typical "App can't be opened because it is from an unidentified developer".

我已经使用几乎所有类型的证书“Mac Developer”,“开发者ID应用程序”,“Mac App Distribution”等存档了这个工具,但是当在任何其他机器上打开此工具时,用户面临着典型的“App无法打开,因为它来自一位身份不明的开发者”。

I know this alert can be ignored going to "System Preferences" -> "Security & Privacy" and allow those type of apps, but that's not what I'm looking for. I need to be able to just open this tool without changing any settings.

我知道这个警报可以忽略到“系统偏好设置” - >“安全和隐私”并允许这些类型的应用程序,但这不是我正在寻找的。我需要能够在不更改任何设置的情况下打开此工具。

The alert:
无法分发Mac命令行工具

1 个解决方案

#1


0  

How are you exactly building the version?

你是如何构建版本的?

  1. On the Menu Bar select Product > Archive.
  2. 在菜单栏上,选择产品>存档。

  3. After the build, the Organizer window opens.
  4. 构建后,“管理器”窗口将打开。

  5. Select your version and klick Export... on the right side of the window.
  6. 选择您的版本,然后在窗口右侧单击“导出...”。

  7. On the next window select Developer ID / Distribute directly to customers.
  8. 在下一个窗口中,选择开发者ID /直接分发给客户。

  9. On the next screen select Automatically manage signing.
  10. 在下一个屏幕上,选择自动管理签名。

  11. After that you will see a screen with a summary of your team, your certificate, etc.
  12. 之后,您将看到一个屏幕,其中包含您的团队摘要,证书等。

  13. Klick on "Export" and you're done.
  14. 点击“导出”即可完成。

#1


0  

How are you exactly building the version?

你是如何构建版本的?

  1. On the Menu Bar select Product > Archive.
  2. 在菜单栏上,选择产品>存档。

  3. After the build, the Organizer window opens.
  4. 构建后,“管理器”窗口将打开。

  5. Select your version and klick Export... on the right side of the window.
  6. 选择您的版本,然后在窗口右侧单击“导出...”。

  7. On the next window select Developer ID / Distribute directly to customers.
  8. 在下一个窗口中,选择开发者ID /直接分发给客户。

  9. On the next screen select Automatically manage signing.
  10. 在下一个屏幕上,选择自动管理签名。

  11. After that you will see a screen with a summary of your team, your certificate, etc.
  12. 之后,您将看到一个屏幕,其中包含您的团队摘要,证书等。

  13. Klick on "Export" and you're done.
  14. 点击“导出”即可完成。