LSUIElement无效

ant*_*ony 7 macos cocoa info.plist lsuielement

我有一个在Info.plist中有LSUIElement = 1的应用程序.当我运行应用程序时,会为它创建一个停靠项和顶级菜单栏.为什么?

编辑:

我正在使用一个调用TransformProcessType()的库,破坏我的Info.plist配置.

Dav*_*ong 12

转到Info.plist文件,添加新的键值对,或键入Boolean.开始在键中键入"Application is agent".它应该为您自动完成.然后选中复选框.

这就是我创建代理应用程序的方式,它每次都有效!