Skip to content

App still appears in Dock despite adding LSUIElement in Info.plist #1

Open
@pycoder2000

Description

@pycoder2000

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:

  1. Set <key>LSUIElement</key><true/> in the Info.plist file.
  2. Build and run the app from Xcode.
  3. 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:

  1. Could this behavior be caused by how I’m running the app (e.g., directly from Xcode or certain configurations)?
  2. Are there any additional settings I need to modify in the Info.plist file or Xcode project?
  3. Has anyone else encountered this issue, and how did you resolve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions