I wanna capture USB attach and detach events. With a high level reading of Driverkit appears that it is to control the actual device.In that case did not find anything related to attach/ detach events.Is DriverKit the right extension to achieve this or any other System extension has to be used ??
Post
Replies
Boosts
Views
Activity
With binaries built using XCode 13.1 and executing on Monterey 12.0.1
When i load a dylib I get following error:
dlopen failed for DYLIB: (/Library/Application Support/Test/cor.dylib) Error:(dlopen(/Library/Application Support/Test/cor.dylib, 0x0006): tried: '/Library/Application Support/Test/cor.dylib' (slice is not page aligned, fat file, but missing compatible architecture (have 'x86_64,arm64', need 'x86_64h'))).
This is seen when I sign the binary. Same binary which is unsgined works properly.
Both the loader binary and the dylib are built using Standard Architecture (universal). So i am clueleses what might be the error.