Menu bar only macOS app: "Invalid 'com.apple.application-identifier' entitlement value"

I created a menu bar only macOS app using SwiftUI. 'Application is agent (UIElement)' is set to YES in the Info.plist. I use automatic signing.

When I try to upload the app to App Store Connect, I get the following error.

Invalid Provisioning Profile. The provisioning profile included in the bundle de.dasdom.XcodeTips [de.dasdom.XcodeTips.pkg/Payload/XcodeTips.app] is invalid. [Invalid 'com.apple.application-identifier' entitlement value.] For more information, visit the macOS Developer Portal.

I also tried to create the certificates and the provisioning profile myself but got the exact same error each and every time.

How can I fix this?

Xcode Version: Version 14.1 (14B47b) Deployment Target: macOS 13.0

Most folks who do this have two apps, with the UIElement app nested inside a main app that allows the user to enable and disable it. Is that how you have things set up?

Share and Enjoy

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

Menu bar only macOS app: "Invalid 'com.apple.application-identifier' entitlement value"
 
 
Q