File not found after app update (Documents path changed) iOS Origin: On your device OSI layer 7 · Application Last updated 25 Nov 2026

Error Domain=NSCocoaErrorDomain Code=260 "The file couldn't be opened because there is no such file."

A saved absolute path no longer exists.

Exact message you may see NSCocoaErrorDomain Code=260 The file couldn't be opened because there is no such filefile not found after app update container pathError Domain=NSCocoaErrorDomain Code=260 "The file couldn't be opened because there is no such file."
Seen on: iOS Swift

Meaning

The app container UUID changes between installs/updates. Store relative paths and rebuild URLs from FileManager.default.urls(for:in:) each launch.

Common causes

  • Absolute path persisted
  • Container changed
  • File deleted by system (Caches)

⚡ Quick fix

  1. Save only the file name
  2. Rebuild URL from Documents directory
  3. Don't store data in Caches

Detailed fix by platform

Swift

  1. swift
    let docs = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]
    let url = docs.appendingPathComponent(name)

How to diagnose

  1. Path — absolute?
  2. Dir — Documents?
  3. Cache — purged?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

Core Data: Failed to load model named / Unresolved error — Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134060 (iOS)Core Data: Failed to …DecodingError.dataCorrupted: The given data was not valid JSON — Error Domain=NSCocoaErrorDomain Code=3840 "Unable to parse empty data." / dataCorrupted (iOS)DecodingError.dataCor…error: cannot run gpg: No such file or directory — error: cannot run gpg: No such file or directory error: gpg failed to sign the data (Git)error: cannot run gpg…Error: Could not symlink bin/x — Target /usr/local/bin/x already exists — Error: Could not symlink bin/python3 Target /usr/local/bin/python3 already exists and is not a symlink to /usr/local/Cellar/... (macOS)Error: Could not syml…error: invalid path 'aux.c' / unable to create file on Windows — error: invalid path 'docs/aux.md' fatal: unable to checkout working tree (Git)error: invalid path '…fatal: '../wt' already exists — fatal: '../repo-wt' already exists (Git)fatal: '../wt' alread…fatal: destination path already exists and is not an empty directory — fatal: destination path 'repo' already exists and is not an empty directory. (Git)fatal: destination pa…fatal: Unable to find remote helper for 'https' — fatal: Unable to find remote helper for 'https' (Git)fatal: Unable to find…File not …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.