Skip to content

Commit 6863555

Browse files
author
Samuel Groß
committed
Add iOSOnMac
1 parent 153eed9 commit 6863555

6 files changed

Lines changed: 1312 additions & 0 deletions

File tree

iOSOnMac/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all : runner main interpose.dylib
2+
3+
interpose.dylib : interpose.c
4+
clang interpose.c -arch arm64 -o interpose.dylib -shared -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
5+
6+
main : main.c interpose.dylib
7+
# Can link against existing frameworks/libraries here by copying them onto ./Frameworks and adding `-F $(PWD)/Frameworks -framework $NAME_OF_FRAMEWORK -Wl,-rpath,$(PWD)/Frameworks
8+
clang main.c -arch arm64 -o main -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk interpose.dylib
9+
10+
runner : runner.c entitlements.xml
11+
clang runner.c -o runner
12+
# Replace this identity, find available certificates usign `security find-identity`
13+
codesign -s "XXXXXXXXXX" --entitlements entitlements.xml --force runner

iOSOnMac/entitlements.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.debugger</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)