Access images on plugged in iPhone

I would like my MacOS App to be able to access images (ie within the iOS Photos Library) from an iPhone that is plugged into the Mac, much like would be possible from a USB drive.

Does anyone know a way of achieving this?

from what I understand, you can’t
the closest you might get it to transfer (manually) the photos from the iPhone to the Mac
and then access them from the Mac Photo Library

I see that the Photo’s app on Mac has that capability - was hoping it could be replicated.

Mac can access MacPhoto
and iOS can access iOSPhoto
but Mac cannot access iOSPhoto (except via iTunes Sync)

Plug in your iPhone, open Photos on the Mac, and you can import directly from iosPhoto. That’s what I’d like to be able to do with my App…

This would seem to apply:
https://stackoverflow.com/questions/30144547/programmatic-access-to-the-photos-library-on-mac-os-x-photokit-photos-framewo

[quote=382662:@Michel Bujardet]This would seem to apply:
https://stackoverflow.com/questions/30144547/programmatic-access-to-the-photos-library-on-mac-os-x-photokit-photos-framewo[/quote]
not sure that is what the OP is looking for… it seems he wants to use his MAC to read the photos on his iPhone[quote=382652:@James Pitchford]Plug in your iPhone, open Photos on the Mac, and you can import directly from iosPhoto. That’s what I’d like to be able to do with my App…[/quote]
doubt seriously that functionality is in any way exposed by Apple (ie. most likely Private API)

image Capture API can access the iPhone’s photos when the phone is physically connected to the Mac (via a cable).

The usual route; plugins or declares.

Did you check my plugin?

http://www.monkeybreadsoftware.net/class-iccameradevicembs.shtml

Thanks Christian. Both examples (Camera Browser and Image Capture Views) list the iPhone under Devices - but neither seems able to list the images there-in. Is there another step I need to add?

You could check apple’s documentation.
First your app may need to have permissions, entitlements and be signed.

Ha, briliant. It worked second time. Runs from the debugger. No signing needed, just unlocked iPhone.

Thanks again.

Christian

A little more help please, I feel what I need is there but I can’t quite access it. I’m trying to get at the ICCameraDeviceMBS.mediaFiles but using both methods of access in your examples (ImageCaptureViews and CameraBrowser) result in an empty array for this method.

Yet ImageCaptureViews, when showing in the example IKCameraDeviceViewControlMBS correctly shows the content of the iPhone, so I’m probably missing something obvious (to others!).

I’ve tried compiling, 64bit, entitlements for USB, Camera and code signing but without success.