---
title: "loginItem(identifier:)"
framework: servicemanagement
role: symbol
role_heading: Type Method
path: "servicemanagement/smappservice/loginitem(identifier:)"
---

# loginItem(identifier:)

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

## Declaration

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

## Parameters

- `identifier`: The bundle identifier of the helper application.

## Return Value

Return Value An SMService object.

## Discussion

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

## See Also

### Managing apps

- [mainApp](servicemanagement/smappservice/mainapp.md)
- [agent(plistName:)](servicemanagement/smappservice/agent(plistname:).md)
- [daemon(plistName:)](servicemanagement/smappservice/daemon(plistname:).md)
