gpt4 book ai didi

cocoa - com.apple.xpc.launchd.oneshot

转载 作者:行者123 更新时间:2023-12-03 16:40:47 26 4
gpt4 key购买 nike

XCTestCase 测试中,我创建了一个 NSTask 对象并将其设置为运行 printenv。然后,在 NSTask 完成后,我使用 fork 和 execv 运行了 printenv。除了一个环境变量之外,两者的输出是相同的。

NSTask:XPC_SERVICE_NAME=com.apple.xpc.launchd.oneshot.0x10000004.Xcode

execv:XPC_SERVICE_NAME=0

什么是com.apple.xpc.launchd.oneshot

最佳答案

我在 Apple 支持社区上发布了同样的问题,编写名为 EtreCheck 的程序的先生回复了。

我想你会找到答案 here :

Hello TomsApple,

I guess now you know some of the reasons behind that big disclaimer that you saw when you ran EtreCheck.

The "com.apple.xpc.launchd.oneshot" is just a method that Apple uses to identify one of many categories of tasks that the system runs in the background. I don't know how much background you have in UNIX, so I don't know how much detail I should give you on this. In addition, Apple doesn't document any of this, so at some point my answer would move from fact to speculation.

I can tell you that I added that "Other apps" section to EtreCheck specifically to show some of the many different kinds of tasks that the operating system is launching and running in the background. Before, EtreCheck only looked at the 8 primary places to inject these background tasks into the operating system. I knew I was missing one of the paths for "login items" and wanted to capture that. I did manage to capture that information, but I also collected a whole lot more. I decided to keep them all in there, but hide the Apple tasks by default. Even so, this "Other apps" section show how much more complicated the operating system has become in the past few years. If you want, you can run EtreCheck so that it doesn't hide Apple tasks and doesn't hide known Apple failures. Just don't post that report here on Apple Support Communities. It is a crazy-long list of background tasks that are always running on your machine.

Now I know this doesn't really answer your question. If you want more specifics or more detail, I can provide it, but I can't necessarily guarantee its accuracy. I have attempted to use my Apple Developer Technical Support tickets to get more information about what some of these things are and Apple refuses to answer.

关于cocoa - com.apple.xpc.launchd.oneshot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28804887/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com