Liberation
Liberation copied to clipboard
Undefined symbols for architecture armv7
ERROR
Undefined symbols for architecture armv7:
"liberation::Patch::CreatePatch(unsigned int, unsigned int)", referenced from:
Init() in Tweak.xm.9c9f36a7.o
ld: symbol(s) not found for architecture armv7
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
Tweak.xm
#include <Liberation.h>
void Init() {
Patch *patch1 = Patch::CreatePatch(0x244698, 0x0020);
patch1->Apply();
}
Makefile
ARCHS = armv7 arm64
include theos/makefiles/common.mk
TWEAK_NAME = Test
Test_FILES = Tweak.xm
Test_CFLAGS += -std=c++11 -stdlib=libc++ -Os
Test_LDFLAGS += -Wl,-segalign,4000
Test_LIBRARIES = c++ Liberation
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 '-'"
uhh now might not be the best time to use liberation. it's about to be completely redone
Oh that's bad.
I was looking for an alternative to writeData because I don't know if it has problem on iOS >=9. Same patch for the same AppVersion works on iOS 8 and not on iOS 9 and 10 :/
Thanks anyway ;)
there's absolutely no reason why it wouldn't work on iOS 9 or 10
That's what I think too, but I also see no reason why the patch works on iOS 8 and not on iOS 9 or 10