<!--
{
  "availability" : [
    "iOS: -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ServiceManagement",
  "identifier" : "/documentation/ServiceManagement/SMAppService/loginItem(identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Service Management"
    ],
    "preciseIdentifier" : "c:objc(cs)SMAppService(cm)loginItemServiceWithIdentifier:"
  },
  "title" : "loginItem(identifier:)"
}
-->

# loginItem(identifier:)

Initializes an app service object for a login item corresponding to the bundle with the identifier you provide.

```
class func loginItem(identifier: String) -> Self
```

## Parameters

`identifier`

The bundle identifier of the helper application.

## Return Value

An `SMService` object.

## Discussion

The property list name must correspond to a property list in the calling app’s `Contents/Library/LoginItems` directory

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)