---
title: "CFPlugInCreate(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfplugincreate(_:_:)"
---

# CFPlugInCreate(_:_:)

Creates a CFPlugIn given its URL.

## Declaration

```swift
func CFPlugInCreate(_ allocator: CFAllocator!, _ plugInURL: CFURL!) -> CFPlugIn!
```

## Parameters

- `allocator`: The allocator to use to allocate memory for the new plug-in. Pass NULL or kCFAllocatorDefault to use the default allocator.
- `plugInURL`: The location of the plug-in.

## Return Value

Return Value A new plug-in. Ownership follows the The Create Rule.

## See Also

### Creating Plug-ins

- [CFPlugInInstanceCreate(_:_:_:)](corefoundation/cfplugininstancecreate(_:_:_:).md)
