The operation can't be completed because an unexpected error occurred (error code 100093)The operation can't be completed because an unexpected error occurred (error code 100093)

Some Mac users running macOS Ventura have noticed a series of “operation can’t be completed because an unexpected error occurred” error messages when attempting to drag and drop files in the Finder from macOS Ventura to a virtual volume, like what’s often used on a Micro:bit, Raspberry Pi Pico, AdaFruit, CircuitPython / Pyboard, DAPLink, or other RP2040-based boards, and even some USB flash drives.

The full error message when attempting to drag and drop UF2 or hex files in the Finder to the target volume is usually “The operation can’t be completed because an unexpected error occurred (error code 100093).” with the same 100093 error code.

A workaround is available for Raspberry Pi Pico users however, and it relies on using the command line cp command to copy files manually through Terminal.

Use the following command syntax to copy the file blink.uf2 to the Raspberry Pi volume (if your file or volume is named differently, replace that syntax accordingly:

cp -X blink.uf2 /Volumes/RPI-RP2/

Because copying files in Terminal works, this implies the problem lies in the Finder of MacOS Ventura, and is likely a bug that will be resolved in a future macOS system software update.

If using the command line is annoying for you or not possible for your situation, and you’re a heavy Raspberry Pi Pico or Micro:bit user, you may want to consider avoiding macOS Ventura for the time being.

Raspberry Pi offers the following additional information and speculation as to the cause of the issue:

If you plug a Raspberry Pi Pico, or other RP2040-based board, into a Mac running Ventura, the RPI-RP2 “virtual” volume will be mounted as normal. Unfortunately, if you then try to drag-and-drop a UF2 file onto the volume, the process doesn’t complete, throwing a kPOSIXErrorENOATTR (“Attribute not found”) error.

Why is this happening? Our current assumption is that Apple has implemented a change in the way that the macOS Finder deals with extended attributes.

FWIW, rsync and pcp also work at the command line for this purpose as well.

So if you’re using a Raspberry Pi and having issues with macOS Ventura, and you’re seeing that annoying “The operation can’t be completed because an unexpected error occurred (error code 100093)” error message, turn to the command line for now, and you’ll be on your way.

Source