Access images on plugged in iPhone

  1. 8 months ago

    James P

    15 Apr 2018 Pre-Release Testers, Xojo Pro Jamaica

    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?

  2. Dave S

    15 Apr 2018 San Diego, California USA

    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

  3. James P

    15 Apr 2018 Pre-Release Testers, Xojo Pro Jamaica

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

  4. Dave S

    15 Apr 2018 San Diego, California USA

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

  5. James P

    15 Apr 2018 Pre-Release Testers, Xojo Pro Jamaica

    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...

  6. Michel B

    15 Apr 2018 Pre-Release Testers RubberViews.com

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

  7. Dave S

    15 Apr 2018 San Diego, California USA

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

    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

    @James P 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...

    doubt seriously that functionality is in any way exposed by Apple (ie. most likely Private API)

  8. Sam R

    15 Apr 2018 Pre-Release Testers, Xojo Pro Hengchun, Pingtung, Taiwan

    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.

  9. Christian S

    16 Apr 2018 Pre-Release Testers, Xojo Pro, XDC Speakers Answer Germany

    Did you check my plugin?

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

  10. James P

    16 Apr 2018 Pre-Release Testers, Xojo Pro Jamaica

    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?

  11. Christian S

    16 Apr 2018 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

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

  12. James P

    16 Apr 2018 Pre-Release Testers, Xojo Pro Jamaica

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

    Thanks again.

  13. James P

    16 Apr 2018 Pre-Release Testers, Xojo Pro Jamaica

    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.

or Sign Up to reply!