SIP off on mac os but still cant load my kext
<p>i,m new to kext programming so my problem is:</p>

<p>i,m running macOS 10.11.6 i have turned SIP off but when i try to load my 
kext using <strong>kextload</strong> and using the -v flag i get that my kext was successfully loaded:</p>

<pre><code>*Requesting load of /private/tmp/kern.kext.
/private/tmp/kern.kext loaded successfully (or already loaded).*
</code></pre>

<p>and to check that my kext was loaded i have used <strong>kextstat</strong> :</p>

<pre><code> 152    0 0xffffff7f82db3000 0x2000     0x2000     com.SPX.kext.kern (1) 299868F4-9962-362D-AE3D-09579B6780DB &lt;4&gt;
</code></pre>

<p>but when i tail my kernel logs from: <strong>/var/log/system.log</strong>
using the command : <code>tail -f /var/log/system.log</code></p>

<p>i see that error:</p>

<pre><code>MacBook-Pro com.apple.kextd[47]: kext signature failure override 
</code></pre>

<p><code>allowing invalid signature -67050 0xFFFFFFFFFFFEFA16 for kext</code>    </p>

<pre><code>"/private/tmp/kern.kext"
</code></pre>

<p>my kext is a simple hello world kext and there's my code </p>

<pre><code>#include &lt;mach/mach_types.h&gt;
#include &lt;libkern/libkern.h&gt;

kern_return_t kern_start(kmod_info_t * ki, void *d);
kern_return_t kern_stop(kmod_info_t *ki, void *d);

kern_return_t kern_start(kmod_info_t * ki, void *d)
{
    printf("hello world");
    return KERN_SUCCESS;
}

kern_return_t kern_stop(kmod_info_t *ki, void *d)
{
    printf("bye kext");
    return KERN_SUCCESS;
}
</code></pre>

<p>thanks in advance for any help </p>

<p><strong>edit:</strong></p>

<p>so after many test its look like the kext was loaded successfully but when it comes to the code sign issue i went through Xcode Build Settings and there i found <strong>code signing</strong> so in the <strong>code signing</strong> there's <strong>code signing identity</strong> so i set it to <strong>Don't code sign</strong> and i build it with using Xcode build tool  <code>xcodebuild -configuration Debug -target kern</code>
but still no progress till now, so i hope someone help at least give a link or anything . </p>