---
title: startServicePrincipal()
framework: Professional Video Applications
role: symbol
role_heading: Type Method
platforms: [fxplug 3.1+]
path: professional_video_applications/fxprincipal/startserviceprincipal()
---

# startServicePrincipal()

Start your XPC service listening for connections from the host application.

## Declaration

```swift
class func startServicePrincipal()
```

## Discussion

Discussion The purpose of this method is so that plug-ins don’t have to link against PlugInKit.framework. You can simply link against FxPlug.framework and call [FxPrincipal startServicePrincipal] from the service principal’s main() function.

## See Also

### Type Methods

- [embeddedPrincipal()](professional_video_applications/fxprincipal/embeddedprincipal().md)
- [startServicePrincipal(with:)](professional_video_applications/fxprincipal/startserviceprincipal(with:).md)
