Skip to content

Commit 438d818

Browse files
committed
interposer: disable for simulator builds
1 parent 1719710 commit 438d818

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

JailbreakInterposer/JailbreakInterposer.c

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// limitations under the License.
1515
//
1616

17+
#include <TargetConditionals.h>
18+
#if !TARGET_OS_SIMULATOR
1719
#include <IOKit/IOKitLib.h>
1820
#include <unistd.h>
1921

@@ -54,3 +56,4 @@ __attribute__ ((used, section ("__DATA,__interpose")))
5456
static struct {
5557
void *replacement, *original;
5658
} replace_IOServiceAuthorize = { IOServiceAuthorizeReplacement, IOServiceAuthorize };
59+
#endif

0 commit comments

Comments
 (0)