Observe iOS device connect/disconnect on macOS.
self.watcher = [[EBIiOSDeviceWatcher alloc] init];
self.watcher.delegate = self;
[self.watcher startWatcing];
EBIiOSDeviceWatcher use Apple's private framework MobileDevice.framework. If install from remote repo, automatically copy framework from local system by podspec prepare_command.
But CocoaPods not execute prepare_command in local podspecs. We need copy manually from /System/Library/PrivateFrameworks/MobileDevice.framework
to Project/Pods/EBIiOSDeviceWatcher
.
GPLv3
- I learned some techniuques and copied MobileDevice.h from ios-deploy.
- Original MobileDevice.h mirrored in here.