---
title: "init(resolvingAliasFileAt:options:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/url/init(resolvingaliasfileat:options:)"
---

# init(resolvingAliasFileAt:options:)

Creates a URL that refers to the location specified by resolving an alias file.

## Declaration

```swift
init(resolvingAliasFileAt url: URL, options: URL.BookmarkResolutionOptions = []) throws
```

## Discussion

Discussion If the url argument doesn’t refer to an alias file (as defined by the isAliasFileKey property), the returned URL is the same as the url argument. This method throws an error in the following cases: The url argument is unreachable. The original file or directory is unknown or unreachable. The original file or directory is on a volume that the system can’t locate or can’t mount. This method doesn’t support the withSecurityScope option.

## See Also

### Creating a URL by resolving a bookmark

- [init(resolvingBookmarkData:options:relativeTo:bookmarkDataIsStale:)](foundation/url/init(resolvingbookmarkdata:options:relativeto:bookmarkdataisstale:)-3ic6f.md)
- [URL.BookmarkResolutionOptions](foundation/url/bookmarkresolutionoptions.md)
- [NSURL.BookmarkResolutionOptions](foundation/nsurl/bookmarkresolutionoptions.md)
