Code Monkey home page Code Monkey logo

Comments (12)

Belcarra avatar Belcarra commented on May 26, 2024 1

from karabiner-driverkit-virtualhiddevice.

tekezo avatar tekezo commented on May 26, 2024

It depends SIP status.

You do not need to acquire entitlements from Apple if SIP is disabled in your test environments.

Of course, you need the properly entitlements If you want to test your driver extension in SIP environment.

Another reason, the error will happen if you set invalid keys in entitlements.plist. See DEVELOPMENT.md:
https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/blob/master/DEVELOPMENT.md#errors

from karabiner-driverkit-virtualhiddevice.

Belcarra avatar Belcarra commented on May 26, 2024

from karabiner-driverkit-virtualhiddevice.

tekezo avatar tekezo commented on May 26, 2024

Hmm, it's strange.

What's the result of the following commands?

systemextensionsctl list

cd Karabiner-DriverKit-VirtualHIDDevice/src
make verify

The systemextensionsctl result should be:

0 extension(s)

or

1 extension(s)
--- com.apple.system_extension.driver_extension
enabled active  teamID  bundleID (version)      name    [state]
*       *       G43BCU2T37      org.pqrs.driverkit.KarabinerDriverKitVirtualHIDKeyboard (0.2.13/0.2.13) org.pqrs.driverkit.KarabinerDriverKitVirtualHIDKeyboard[activated enabled]

The make verify result should be:

codesign -vvv -display build/Release/KarabinerDriverKitVirtualHIDDevice.app
Executable=/Volumes/repo/tekezo/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/sr
c/build/Release/KarabinerDriverKitVirtualHIDDevice.app/Contents/MacOS/KarabinerDriverKitVirtualHIDDevice
Identifier=org.pqrs.KarabinerDriverKitVirtualHIDDevice
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20500 size=1687 flags=0x10000(runtime) hashes=43+5 location=embe
dded
Hash type=sha256 size=32
CandidateCDHash sha256=e3c98e1faa694dd9340fbfe6d0285e095e72167a
CandidateCDHashFull sha256=e3c98e1faa694dd9340fbfe6d0285e095e72167a69f01dbd8f024
1e19d7cff59
Hash choices=sha256
CMSDigest=e3c98e1faa694dd9340fbfe6d0285e095e72167a69f01dbd8f0241e19d7cff59
CMSDigestType=2
CDHash=e3c98e1faa694dd9340fbfe6d0285e095e72167a
Signature size=4746
Authority=Apple Development: Fumihiko Takayama (YVB3SM6ECS)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=May 21, 2020 12:46:24                                               Info.plist entries=23                                                           TeamIdentifier=G43BCU2T37
Runtime Version=10.15.4                                                         Sealed Resources version=2 rules=13 files=8                                     Internal requirements count=1 size=212

codesign --display --entitlements :- build/Release/KarabinerDriverKitVirtualHIDDevice.app
Executable=/Volumes/repo/tekezo/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/sr
c/build/Release/KarabinerDriverKitVirtualHIDDevice.app/Contents/MacOS/KarabinerD
riverKitVirtualHIDDevice
<?xml version="1.0" encoding="UTF-8"?>                                          <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/
PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.application-identifier</key>
    <string>G43BCU2T37.org.pqrs.KarabinerDriverKitVirtualHIDDevice</string>
    <key>com.apple.developer.system-extension.install</key>
    <true/>
  </dict>
</plist>

...

from karabiner-driverkit-virtualhiddevice.

Belcarra avatar Belcarra commented on May 26, 2024

from karabiner-driverkit-virtualhiddevice.

tekezo avatar tekezo commented on May 26, 2024

Thank you for information!

Signature=adhoc

This issue is cause by signing with adhoc signature.

I added the detailed way to determine your code sign identity.
I believe it helps you.
https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice#steps

from karabiner-driverkit-virtualhiddevice.

Belcarra avatar Belcarra commented on May 26, 2024

from karabiner-driverkit-virtualhiddevice.

Belcarra avatar Belcarra commented on May 26, 2024

from karabiner-driverkit-virtualhiddevice.

tekezo avatar tekezo commented on May 26, 2024

These entitlements are injected at the codesign stage.
I guess there are error messages at your codesigning.

Could you show the result of the following command?

cd Karabiner-DriverKit-VirtualHIDDevice/src
make codesign

My result:

bash scripts/codesign.sh build/Release
build/Release/KarabinerDriverKitVirtualHIDDevice.app/Contents/Library/SystemExtensions/org.pqrs.driverkit.KarabinerDriverKitVirtualHIDKeyboard.dext: replacing existing signature
build/Release/KarabinerDriverKitVirtualHIDDevice.app/Contents/Library/SystemExtensions/org.pqrs.driverkit.KarabinerDriverKitVirtualHIDKeyboard.dext: signed bundle with Mach-O thin (x86_64) [org.pqrs.driverkit.KarabinerDriverKitVirtualHIDKeyboard]
build/Release/KarabinerDriverKitVirtualHIDDevice.app: replacing existing signature
build/Release/KarabinerDriverKitVirtualHIDDevice.app: signed app bundle with Mach-O thin (x86_64) [org.pqrs.KarabinerDriverKitVirtualHIDDevice]

from karabiner-driverkit-virtualhiddevice.

Belcarra avatar Belcarra commented on May 26, 2024

from karabiner-driverkit-virtualhiddevice.

tekezo avatar tekezo commented on May 26, 2024

That's great! You're getting an error message.

errSecInternalComponent

Search the Internet by the error messages and fix it. Good luck!

from karabiner-driverkit-virtualhiddevice.

Belcarra avatar Belcarra commented on May 26, 2024

from karabiner-driverkit-virtualhiddevice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.