Example driver project crashes

Hi, I am trying to run an example driver project from https://developer.apple.com/documentation/driverkit/communicating_between_a_driverkit_extension_and_a_client_app?language=objc

The project compiles fine, the driver extension is successfully installed and running, however when the client application tries to communicate with the driver (calls IOConnectCallScalarMethod CppUserClient/main.cpp, line 236), the driver crashes, even though there are no modifications of the example code. Does anybody know how to fix it?

The project doesn't use any provisioning profile, all three targets are signed to run locally as described in the link.

My system:

  • MacOS 11.5.2 BigSur

  • Apple M1 chip

  • XCode 13.2.1

  • System Integrity Protection status: disabled.

  • systemextensionsctl developer: Developer mode is on

  • also ran command "sudo nvram boot-args=-arm64e_preview_abi"

Accepted Reply

It looks like there is an issue with Big Sur and Xcode 13.1 and later causing this problem. The problem shouldn't be present if you upgrade to Monterey.

Replies

It looks like there is an issue with Big Sur and Xcode 13.1 and later causing this problem. The problem shouldn't be present if you upgrade to Monterey.

thanks, after upgrade to Monterey the issue is gone

@Drewbadour - does this mean that it is not possible to use Xcode 13.1 and later to build DEXTs that work on both Big Sur and Monterey?

Add a Comment