<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecStaticCodeGetTypeID()",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecStaticCodeGetTypeID"
  },
  "title" : "SecStaticCodeGetTypeID()"
}
-->

# SecStaticCodeGetTypeID()

Returns the unique identifier of the opaque type to which a static code object belongs.

```
func SecStaticCodeGetTypeID() -> CFTypeID
```

## Return Value

A value that identifies the opaque type of a [`SecStaticCode`](/documentation/Security/SecStaticCode) object.

## Discussion

You can compare the value returned by this function to the <doc://com.apple.documentation/documentation/CoreFoundation/CFTypeID> identifier obtained by calling the <doc://com.apple.documentation/documentation/CoreFoundation/CFGetTypeID(_:)> function on a specific object. These values might change from release to release or platform to platform.

---

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)