summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiling.txt2
-rw-r--r--makefile4
-rwxr-xr-xuikit.sh2
3 files changed, 6 insertions, 2 deletions
diff --git a/compiling.txt b/compiling.txt
index a01cc0d..d6bea4c 100644
--- a/compiling.txt
+++ b/compiling.txt
@@ -2,6 +2,6 @@
1) install the official Apple iOS SDK
2) install Fink (the only sane choice)
3) activate Fink (. /sw/bin/init.sh)
-4) sudo fink install bash ldid tar wget xz
+4) sudo fink install bash ldid sed tar wget xz
5) run ./sysroot.sh and wait a bit
6) type "make" to compile the executable
diff --git a/makefile b/makefile
index bcd811c..8719157 100644
--- a/makefile
+++ b/makefile
@@ -144,11 +144,13 @@ sysroot: sysroot.sh
MobileCydia: sysroot $(object) entitlements.xml
@echo "[link] $(object:Objects/%=%)"
- @$(cycc) $(filter %.o,$^) $(flags) $(link) $(libs) $(uikit)
+ @$(cycc) $(filter %.o,$^) $(flags) $(link) $(libs) $(uikit) -Wl,-sdk_version,7.0
@mkdir -p bins
@cp -a $@ bins/$@-$(version)
@echo "[strp] $@"
@strip -no_uuid $@
+ @echo "[uikt] $@"
+ @./uikit.sh $@
@echo "[sign] $@"
@ldid -T0 -Sentitlements.xml $@ || { rm -f $@ && false; }
diff --git a/uikit.sh b/uikit.sh
new file mode 100755
index 0000000..01ddfa6
--- /dev/null
+++ b/uikit.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec /sw/bin/sed -i -e 's@\(\x0C\x00\x00\x00\x4C\x00\x00\x00\x18\x00\x00\x00\x02\x00\x00\x00\)\x00\x00\xA4\x06\(\x00\x00\x01\x00/System/Library/Frameworks/UIKit.framework/UIKit\x00\x00\x00\)@\1\x00\x02\x57\x0B\2@' "$1"