有人提交过或知道 Mac App Store 中使用 launchd 的应用程序吗?

发布于 2024-10-18 03:03:38 字数 75 浏览 2 评论 0 原文

只是想知道是否有人已成功提交应用程序或知道 Mac App Store 中存在使用 launchd 的应用程序。

谢谢。

Just wondering if anyone has sucessfully submitted an app or know of an app that exists in the Mac App Store that uses launchd.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

荭秂 2024-10-25 03:03:38

有没有有任何方法直接询问苹果这样的事情吗?提交一个虚拟应用程序 - 万一它会被拒绝 - 不是一个很好的方法了解应用程序商店是否允许 launchd。他们(苹果)可能会因为你的应用程序无用或蹩脚而拒绝你的应用程序,哈哈!官方指南非常不全面,特别是在技术限制方面 - 而且我一生都找不到与 App Store“人员”交谈的官方渠道。在过去 5 年里,像破解版一样大肆宣传 launchd 后,如果苹果确实针对使用其功能的应用程序制定了全面政策,那将是令人讨厌的……launchd,如尽管它很怪异……但它非常好,而且在我看来,这是几乎所有“做”任何有用的软件的要求。哼。

跟进..虽然不是这个具体问题的答案,它照亮了主题...

“launchd 立即负责捕获退出
MAS 应用程序的状态,这就是 store_helper 和 storeagent 的原因
当您使用“open foo.app”时启动,但在调用二进制文件时不启动
直接。

似乎有一个私有的 launchd API(请参阅中的 launch_priv.h
launchd 源)'spawn_via_launchd' 允许调用进程
请求 launchd 生成一个进程。该 API 允许反馈有关
通过“观察者端口”创建的进程。查看 launchd 的差异
在 10.6.5 和 10.6.6 之间,您可以看到 Apple 修复了代码中的错误
确保 launchd 捕获正确的退出状态
然后通过该观察者端口转发到原始进程。

似乎发生的情况是,当应用程序通过以下方式启动时
LaunchServices,LaunchApplicationViaLaunchD 调用 'spawn_via_launchd',
并通过观察员端口
通知服务器端关于已启动的应用程序。我认为这将通过
观察者端口到 coreservicesd。我猜 coreservicesd 是
检查退出代码的那个,但我不能确定。”

Is there ANY way to ASK apple, directly, about stuff like this? Submitting a Dummy App - in the off chance it will be rejected - ain't a very good way to know if launchd IS or IS NOT permitted in the app-store. They (apple) simply could have rejected your app for being useless or lame, lol! The official guidelines are SO not comprehensive, especially in terms of technical limitations - and I cant for the life of me find an official channel to speak with the App Store "people". After hyping launchd like crack for the past 5 years, it would be obnoxious if Apple indeed has a blanket policy against apps that make use of its functionality... launchd, as freaky as it is... is pretty damn good, and IMO, a requirement for almost every piece of software that "does" anything useful. humph.

Follow up.. although not a answer to this specific question, it shines light on the subject...

"It is launchd that is immediately responsible for capturing the exit
status of MAS apps, and this is why store_helper and storeagent are
launched when you use ‘open foo.app’, but not when calling the binary
directly.

There appears to be a private launchd API (see launch_priv.h in
launchd source) ‘spawn_via_launchd’ that allows the calling process to
request launchd to spawn a process. This API allows feedback about the
created process via an ‘observer port’. Looking at the diff of launchd
between 10.6.5 and 10.6.6, you can see Apple fixed a bug in their code
to make sure that the right exit status is captured by launchd and
then forwarded to the original process via that observer port.

What appears to happen is that when an application is launched via
LaunchServices, LaunchApplicationViaLaunchD calls ‘spawn_via_launchd’,
and passes the observer port along via
NotifyServerSideAboutLaunchedApplication. I think this then passes the
observer port along to coreservicesd. I’m guessing coreservicesd is
the one that checks the exit code, but I can’t be sure."

好菇凉咱不稀罕他 2024-10-25 03:03:38

它肯定存在于 iOS 中 - 我已经看到 com.apple.launchd 在控制台/日志中滚动过去(通常是当我破坏了某些东西时!)。

请留意本机应用程序 (UIKitApplication) 何时在启动时启动,例如 com.apple.mobilemail 和 com.apple.mobilephone。

不过,我不知道是否能够在本机领域之外使用它,我没有看到任何记录的 API。我一直认为对于我们这些凡人来说,iOS 而不是 OSX 根本无法做到这一点。

It certainly exists within iOS - I've seen com.apple.launchd scrolling past in console/log (normally when I've broken something!).

Keep an eye out for when the native apps (UIKitApplication) are started up at boot such as com.apple.mobilemail and com.apple.mobilephone.

I'm not aware of being able to use it outside of the native arena though, I don't see any documented API's for it. I've always assumed it was simply out of bounds for us mere mortals when it came to iOS rather than OSX.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文