skip to Main Content

This error comes up after archiving

"A file with the name “0D43A9F9-2A23-386C-9568-E0D28099B3D5.bcsymbolmap” already exists.
To save the file, either provide a different name, or move aside or delete the existing file, and try again."

It is pertinent to note that I have another app with same name, bundleID and Team on the same Mac which I have archived successfully and published over the year.

Using Xcode 14.3 in an M1 mac.

I get the Archive Succeeded message but never get to proceed to see my archived build.
This error is due to the pods framework installation in my project. These lines of code in my framework.sh file can help shed more light on the issue.

if [ -d "${source}/${BCSYMBOLMAP_DIR}" ]; then
    # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied
    find "${source}/${BCSYMBOLMAP_DIR}" -name "*.bcsymbolmap"|while read f; do
      echo "Installing $f"
      install_bcsymbolmap "$f" "$destination"
      rm "$f"
    done
    rmdir "${source}/${BCSYMBOLMAP_DIR}"
  fi

I have tried cleaning my build folder, deleting my existing archived files, cleared memory space, googled solutions, deleted derived data, tried all possible word combination search on Stack Overflow even tried AI suggestions. I have also tried the error suggestion of deleting the file, it regenerated on archiving again and throws the same error.

I expected to find solution and archive successfully but I never found a similar error been reported and solved.

error screenshot

2

Answers


  1. It might be an Xcode version issue. Xcode 14 by default no longer supports bcsymbolmaps. Try setting your Xcode to backward compatible with Xcode 13 or Xcode 13.4.1 then redo Pod Install and try if that works.

    Or check if that pod has new version that fixes this issue

    Login or Signup to reply.
  2. remove it and redownload the framwork use pods

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search