简体   繁体   English

是否可以将 MacOS 应用程序从 Xcode 项目添加到 Launchpad?

[英]Is it possible to add MacOS app from a Xcode project to Launchpad?

Made a simple macOS app for personal use and was wondering if there's a way to add the project app to the Launchpad instead of having having to run the app through Xcode simulator.制作了一个供个人使用的简单 macOS 应用程序,想知道是否有办法将项目应用程序添加到 Launchpad,而不必通过 Xcode 模拟器运行应用程序。

Since we're able to install apps from Xcode to our iOS units I was hoping there was a way to do the same for a Mac.由于我们能够将应用程序从 Xcode 安装到我们的 iOS 单元,我希望有一种方法可以为 Mac 做同样的事情。

Yes.是的。 Open the Xcode project for the app that you want.打开所需应用程序的 Xcode 项目。 Make sure that the target for your build is "My Mac".确保您的构建目标是“我的 Mac”。 Then click ProductArchive .然后单击ProductArchive Once a new window opens with your archive, click Distribute App , then Copy App .一旦新的 window 与您的存档一起打开,单击Distribute App ,然后单击Copy App Click Next then choose a location for the app to be put.单击Next ,然后选择要放置应用程序的位置。

Note: you can skip this if you pay for a developer's account (I think).注意:如果您为开发者帐户付费(我认为),则可以跳过此步骤。 Next, right-click the app file and click Open .接下来,右键单击应用程序文件,然后单击Open It will say it's from an untrusted developer (you) because you don't pay for the developer's program.它会说它来自不受信任的开发人员(您),因为您不为开发人员的程序付费。

Now move the app into the Applications folder.现在将应用程序移动到应用程序文件夹中。

Yes, GO to ProductArchiveDistribute AppCopy App and move to application folder.是的,GO 到ProductArchiveDistribute AppCopy App并移动到应用程序文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM