浏览代码

interposer: disable for simulator builds

osy 4 年之前
父节点
当前提交
438d818408
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      JailbreakInterposer/JailbreakInterposer.c

+ 3 - 0
JailbreakInterposer/JailbreakInterposer.c

@@ -14,6 +14,8 @@
 // limitations under the License.
 //
 
+#include <TargetConditionals.h>
+#if !TARGET_OS_SIMULATOR
 #include <IOKit/IOKitLib.h>
 #include <unistd.h>
 
@@ -54,3 +56,4 @@ __attribute__ ((used, section ("__DATA,__interpose")))
 static struct {
     void *replacement, *original;
 } replace_IOServiceAuthorize = { IOServiceAuthorizeReplacement, IOServiceAuthorize };
+#endif