evelyneee / ellekit

yet another tweak injector / tweak hooking library for darwin systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entitlements issue for DriverKit

haniag opened this issue · comments

The project builds fine using Apple silicon, but when I try to build it on an Intel mac, I get this error:

MB:Source user$ xcodebuild -scheme loader
2023-09-27 11:54:43.475 xcodebuild[1648:21427] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme loader

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:DriverKit, name:Any DriverKit Host }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:macOS, name:Any Mac }
{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
Prepare packages

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: 470200406204e2dcdfc682a6e828d283
Build description path: /Users/user/Library/Developer/Xcode/DerivedData/ellekit-bclcflmeasyekohhdvjuqrjxwjhj/Build/Intermediates.noindex/XCBuildData/470200406204e2dcdfc682a6e828d283.xcbuilddata

note: Building targets in dependency order
error: Entitlements are required for product type 'Command-line Tool' in SDK 'DriverKit 22.4'. (in target 'loader' from project 'ellekit')
** BUILD FAILED **

I have enabled arm64e new ABI, and SIP is disabled.

I get the same error with xcodebuild -scheme launchd, but xcodebuild -scheme ellekit-mac works fine.

That’s not how you build ellekit, look at the Makefile