We are updating our application to xcode 8 with SDK 10.12 moving our services from unix daemons to xpc services.
The issue that we have now is that previousl both of our daemons included DiskArbitration framework to list presence of mounted volumes.
After we moved our code to XPC service we are no longer seeing any diskarbitration notifications in the xpc service.
On a different note can we just start the xpcservice in xcode without the whole app for debugging ?
Code and framework linking is the same as we had in previous project. xcode 8 and sdk 10.10
The following code is included in the init of the class, and we dont get any callbacks
diskArbSession = DASessionCreate(kCFAllocatorDefault);
DARegisterDiskAppearedCallback (diskArbSession,
NULL,
diskAppearedCallback,
(__bridge void *)(self));
DARegisterDiskDisappearedCallback (diskArbSession,
NULL,
diskDisappearedCallback,
(__bridge void *)(self));
DARegisterDiskDescriptionChangedCallback (diskArbSession,
NULL,
NULL,
diskDescriptionChangedCallback,
(__bridge void *)(self));
DASessionScheduleWithRunLoop (diskArbSession,
[[NSRunLoop mainRunLoop] getCFRunLoop],
kCFRunLoopDefaultMode);