ImageCaptureCore not working correctly after update to macOS 10.14

Hi,


I have been using ImageCaptureCore Framework for my mac OS application since 2-3 years now, and it has currently started behaving weird after the update to 10.14.


My application uses this framework to detect any external device and uploads the mediaFiles detected in the device.


So, after I run [self.device requestOpenSession];


In the callbacks that I am getting after this


- (void)deviceDidBecomeReady:(ICDevice *)device{

if(self.device.hasOpenSession){ // hasOpenSession returns some random value rather than YES

}

}


- (void)deviceDidBecomeReadyWithCompleteContentCatalog:(ICDevice *)inDevice

{

// I am trying to get the mediaFiles under this method but getting mediaFiles as zero when trying to access.

NSArray *cameraFiles = [(ICCameraDevice*)self.device valueForKey:MEDIAFILES];

[self.delegate mediaFetched:cameraFiles];

}


-(void)device:(ICDevice *)device didOpenSessionWithError:(NSError *)error{


}


I am stuck with this issue and could not find much on the internet for help.

Any help would really be appreciated as many of my customers are impacted because of this.


Thanks in Advance.

Replies

Hello,


I also observe it for ICScannerDevice with 10.15. I observe that the returned value is always NO.

If I ignore it, and rely only on the 2nd argument of


- (void) device:(ICDevice*) device didOpenSessionWithError:(NSError*) error


it seems to work as if a session is opened correctly.

Did you fill in a bug report ?


Thanks,

We have the same problem with 10.15 too.

I have the same issue on 10.15.2 Beta (19C32e)

My software works under 10.14


@erobin

> it seems to work as if a session is opened correctly


What do you mean by this? Is there a different way to open a device?


- David

I've just changed my minimum OS from 10.11 to 10.12

This altered the behavious of the software running under 10.15 and caused the session for the device be to opened!


I still cannot take a picture from the Mac, but it's a big step forward.


I have subsequently increased the min OS version to 10.15... there's not change in picture taking behaviour.

Anyway I thout that the feedback was worthwhile providing.


- David