Entitlement missing - Application is agent (UIElement)

I have an app that runs as a status bar app, mostly. I have set the following in the info.plist file for the app:

<key>Application is agent (UIElement)</key>
<true/>

However, I get a compile error:

Provisioning profile Mac Team Provisioning Profile: yout.Drive doesn't include the Application is agent (UIElement) entitlement.

Checking the entitlements, I do not see this entitlement anywhere. Where and how do I set this?

Answered by DTS Engineer in 852119022

To create a UI element, set the LSUIElement property in your Info.plist. It looks like you’re hitting two problems:

  • You’re using the display name of the property, Application is agent (UIElement), rather than the actual name, LSUIElement.
  • You’ve put it in your .entitlements file, rather than your Info.plist.

If you’re using Xcode, set the Application is Agent (UIElement) build setting, which will add the LSUIElement property during the build process.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

To create a UI element, set the LSUIElement property in your Info.plist. It looks like you’re hitting two problems:

  • You’re using the display name of the property, Application is agent (UIElement), rather than the actual name, LSUIElement.
  • You’ve put it in your .entitlements file, rather than your Info.plist.

If you’re using Xcode, set the Application is Agent (UIElement) build setting, which will add the LSUIElement property during the build process.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Entitlement missing - Application is agent (UIElement)
 
 
Q