Latest Mojave security update breaks iOS photo importing

Originator:thegriffs
Number:rdar://FB11612175 Date Originated:9/28/2022
Status:Closed Resolved:9/29/2022
Product:Photos, macOS Mojave Product Version:
Classification:Bug Reproducible:Always
 
*** THIS ISSUE ONLY AFFECTS MOJAVE! ***

After installing the latest Mojave security update, I'm unable to import photos from my iOS 16 iPhone. (This issue is affecting at least one other person as well.) Steps to reproduce:

1) Take pictures on iPhone
2) Connect iPhone to macOS
3) Open Photos, select iPhone
4) Import new photos—one or all, doesn't matter

Expected results: Photos import.
Actual results: No photos import.

Every photo fails to import with this message in a dialog:

The operation couldn't be completed. (com.apple.ImageCaptureCore error -9956.)

It does not matter if the iPhone is set to take HEIC or JPG, both fail. It does not matter if the iPhone is set to transfer compatible or original, neither work. I have rebooted both devices. I have changed the USB cable. I have granted full disk access to Photos. I have tested with a new blank Photos library. Nothing helps.

This is not a problem with the images—they import fine onto a 14" MacBook Pro running Monterey. This is definitely related to Mojave, and I believe, the latest security update. In Console, here's the message stream for one failed image:

default	14:07:27.424044 -0700	Photos	[00002967]  Request Download: IMG_7934.HEIC
error	14:07:27.452379 -0700	PTPCamera	[00001157]   ---> [PTPHostUSBTransport handleBulkData:result:] - MD5 FAILED | HOST LAYER WILL RETRY IF POSSIBLE
error	14:07:27.452401 -0700	PTPCamera	[00001158]   ---> First Packet: NO   Final Packet: YES
error	14:07:27.452414 -0700	PTPCamera	[00001159]   ---> Total Bytes Filled: 0  USB Packet Bytes: 524288
error	14:07:27.467756 -0700	PTPCamera	[00001157]   ---> [PTPHostUSBTransport handleBulkData:result:] - MD5 FAILED | HOST LAYER WILL RETRY IF POSSIBLE
error	14:07:27.467778 -0700	PTPCamera	[00001158]   ---> First Packet: YES   Final Packet: NO
error	14:07:27.467792 -0700	PTPCamera	[00001159]   ---> Total Bytes Filled: 0  USB Packet Bytes: 524272
error	14:07:27.467999 -0700	PTPCamera	[00002595]  Retry #:1048532, E: 0x0/ A: 0x0 - Received an invalid transaction size - aborting at 0x3fdb2bfdb4cc2507
error	14:07:27.468025 -0700	PTPCamera	[00002596]  I¥R롡\^] Retry failed, bailing and aborting download
error	14:07:27.468433 -0700	PTPCamera	[00000804]  !-!     ICACommandDict:{
    CallbackInfo = 105553245643456;
    ICACommandKey = ICADownloadFileCmd;
    ICAErrorKey = "-9956";
    ICAExecutableArchitectureKey = 16777223;
    ICAOptionsDictionaryKey =     {
        adjustCreationDate = 1;
        deleteAfterDownload = 0;
        dirPath = "/Volumes/PhotosNVME/iPhoto/Photos Library.photoslibrary/Masters/2022/09/28/20220928-210727/";
        dontEmbedColorSyncProfile = 1;
        saveAsFilename = "IMG_7934.HEIC";
    };
    ICC = Y;
    objectID = 9;
    operationID = "IMG_7934.HEIC";
}
error	14:07:27.468454 -0700	PTPCamera	[00000805]  !-!     ICAPrivateDict:{
    ICAClientPID = 66393;
    ICCommandTransactionID = 11;
}
error	14:07:27.480092 -0700	Photos	ERROR: The operation couldn’t be completed. (com.apple.ImageCaptureCore error -9956.) (, path: IMG_7934.HEIC (IMG_7934.HEIC)), file: /BuildRoot/Library/Caches/com.apple.xbs/Sources/PhotoApp/PhotoApp-3461.7.160/lib/redrock/Import/RKImageCaptureManager.m, line: 798
default	14:07:27.480214 -0700	Photos	[IMPORT ERROR] CRITICAL: The operation couldn’t be completed. (com.apple.ImageCaptureCore error -9956.) (NSError: Error Domain=com.apple.ImageCaptureCore Code=-9956 "(null)"), path: IMG_7934.HEIC (IMG_7934.HEIC), source: /BuildRoot/Library/Caches/com.apple.xbs/Sources/PhotoApp/PhotoApp-3461.7.160/lib/redrock/Import/RKImageCaptureManager.m, line: 798

Of concern to me is the bit about "MD5 FAILED" in the message stream—something is failing authentication somewhere. I don't know if this is a cause or a symptom, but I know it's not good. 

I doubt this bug report will get any attention, because it's an old OS, but it's very real, and very ugly. The workaround right now is to import onto my MBP, then move to my iMac, then import to Photos. This all worked perfectly with my iPhone before the latest security update.

---------------------

It turns out iOS 16 is at fault: iOS 16.1 fixes the problem. Closing feedback.

Comments

Not a Mojave bug - it was an iOS bug

It turns out iOS 16 is at fault: iOS 16.1 fixes the problem. Closing feedback.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!