From 57955e66916b515fccb920da3e6a4fff4816370d Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Tue, 13 Apr 2021 10:35:40 -1000 Subject: Hacks to make Cydia find WebKit on old iOS versions - Path was moved so look in two places for WebKit - WebKit now pretends to export functions from WebCore so link WebCore first --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 9638031..72539ba 100644 --- a/makefile +++ b/makefile @@ -82,7 +82,6 @@ libs += -framework IOKit libs += -framework QuartzCore libs += -framework SpringBoardServices libs += -framework SystemConfiguration -libs += -framework WebKit libs += -framework CFNetwork @@ -92,6 +91,7 @@ libs += -framework WebCore libs += -Xarch_armv6 -Wl,-force_load,Objects/libapt32.a lapt += Objects/libapt32.a endif +libs += -framework WebKit libs += -Xarch_$(arch) -Wl,-force_load,Objects/libapt64.a lapt += Objects/libapt64.a @@ -289,6 +289,10 @@ MobileCydia: $(object) entitlements.xml $(lapt) @grep '~' <<<"$(version)" >/dev/null && echo "skipping..." || strip $@ @echo "[uikt] $@" @./uikit.sh $@ + @install_name_tool -add_rpath /System/Library/Frameworks $@ + @install_name_tool -add_rpath /System/Library/PrivateFrameworks $@ + @install_name_tool -change /System/Library/Frameworks/WebKit.framework/WebKit @rpath/WebKit.framework/WebKit $@ + @install_name_tool -change /System/Library/PrivateFrameworks/WebKit.framework/WebKit @rpath/WebKit.framework/WebKit $@ cfversion: cfversion.mm $(cycc) -o $@ $(filter %.mm,$^) $(flag) $(link) -framework CoreFoundation -- cgit v1.2.3