block/unmount iPhone connection to a MacOs
I am trying to develop a "Device control" app that will allow companies to block specific devices.
Once a device is connected physically via a USB port, my app checks it and then decides if to unmount it.
I am able to do it with mass storage devices like Disk-On-Key and SSD cards.
For that I am using the API functions: DADiskCreateFromIOMedia, DADiskUnmount, etc'
However, looks like iPhones aren't mounted like storage devices and they don't have an IOMedia object.
I can't find a way to unmount an iPhone at all.
Is it even possible? If yes, can you please give me a reference to a resource?
I am writing the app in Objectice-C.
Thanks!
Mac mini, macOS 10.15