Open
Description
The app is supposed to run as a menu bar application and not appear in the Dock. To achieve this, I added the following key to my Info.plist
file:
<key>LSUIElement</key>
<true/>
However, the app still appears in the Dock when launched.
Steps to Reproduce:
- Set
<key>LSUIElement</key><true/>
in theInfo.plist
file. - Build and run the app from Xcode.
- Observe that the app appears in the Dock.
Expected Behavior:
The app should only appear only as a menu bar item and not show up in the Dock.
Actual Behavior:
The app still appears in the Dock when launched.
Additional Information:
- Xcode Version: Version 16.2 (16C5032a)
- macOS Version: Sequoia 15.2
Questions and Requests:
- Could this behavior be caused by how I’m running the app (e.g., directly from Xcode or certain configurations)?
- Are there any additional settings I need to modify in the
Info.plist
file or Xcode project? - Has anyone else encountered this issue, and how did you resolve it?