<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARReferenceObject/init(archiveURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARReferenceObject(im)initWithArchiveURL:error:"
  },
  "title" : "init(archiveURL:)"
}
-->

# init(archiveURL:)

Loads a reference object from the specified file URL.

```
init(archiveURL url: URL) throws
```

## Parameters

`url`

The local file URL containing the reference object to load.

## Return Value

The reference object contained in the file.

## Discussion

To use the object for detection in a world-tracking AR session, add it to the [`detectionObjects`](/documentation/ARKit/ARWorldTrackingConfiguration/detectionObjects) set in your session configuration.

---

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)