---
title: "CFUUIDCreate(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfuuidcreate(_:)"
---

# CFUUIDCreate(_:)

Creates a Universally Unique Identifier (UUID) object.

## Declaration

```swift
func CFUUIDCreate(_ alloc: CFAllocator!) -> CFUUID!
```

## Parameters

- `alloc`: The allocator to use to allocate memory for the new CFUUID object. Pass NULL or doc://com.apple.corefoundation/documentation/CoreFoundation/kCFAllocatorDefault to use the current default allocator.

## Return Value

Return Value A new CFUUID object. Ownership follows the The Create Rule.

## See Also

### Creating CFUUID Objects

- [CFUUIDCreateFromString(_:_:)](corefoundation/cfuuidcreatefromstring(_:_:).md)
- [CFUUIDCreateFromUUIDBytes(_:_:)](corefoundation/cfuuidcreatefromuuidbytes(_:_:).md)
- [CFUUIDCreateWithBytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:)](corefoundation/cfuuidcreatewithbytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:).md)
