Jump to content

Aarivex

Senior Member
  • Posts

    184
  • Joined

  • Last visited

Everything posted by Aarivex

  1. The offsets are RVAs dumped from a unity game (American Dad! Apocalypse Soon) for getter-methods. The level one was just an example.
  2. I already know that tool, but I can write that code on my own I wrote this bit of code, which sadly doesn't affect anything: #include <mach-o/dyld.h> #include <substrate.h> void *func = (void *)(_dyld_get_image_vmaddr_slide(0) + 0x101AA8924); int (*original) (); // or int (*original) (void *self); int replacement() { // or int replacement (void *self); return 10; } %ctor { MSHookFunction(lvlFunc, (void *)replacement, (void **)&original); } whereas this code leads to an crash: #include <mach-o/dyld.h> #include <substrate.h> int (*old_get_Level)(void *self); int get_Level(void *self) { return 10; } %ctor { MSHookFunction((void *)(_dyld_get_image_vmaddr_slide(0) + 0x101AA8924), (void*)get_Level, (void**)&old_get_Level); } Not just with get_Level, but also with some methods inside a battle - f.e. MaxHealth or UnitHealth.
  3. I got some answers on /r/jailbreakdevelopers that told me that I need the RVA and the ASLR slide, so it makes sense now to me. Thanks for your answers! What confused me was that why overriding a method address with ARM HEX instructions would work, but I got some insight there now that I know that you can "replace" the original function with your own and how the offset works using _dyld_get_image_vmaddr_slide(0).
  4. Thats formulated a bit harsh. Unity is a great tool making game development easy using a very nice programming language, of course you'd stick with it with all the great functions it provides. And indeed you are learning to analyze, it's not a childs play to override Unity methods either. But great tutorial, didn't expect something that well explained. Thank you!
  5. There is a class called BattleUnit which has methods such as ChangeHealth(int delta), SetMaxHealth(int maxHealth) and Die(). Overriding Die (0x17FF620) with NOP (00F020E3) or RET (C0035FD6) using the iOSGods Live Offset Patcher doesn't do anything. Maybe someone could help me out here. Edit: Got some more knowledge on this know and how to override it - will keep this updated.
  6. Thanks for your answer. I already know about RET, but how would you fit both MOV and RET in one single HEX and how could I get the current register? Do I need to debug it, or would fridump do the job? And does that mean that the offset of a method is just pointing to the corresponding ARM code that is being executed, just like you'd inspect an method inside IDA?
  7. I think I messed something up. Using iPhoneOS11.2 as SDK. > Making all for tweak AmericanDadHack… ==> Compiling Tweak.xm (arm64)… In file included from Tweak.xm:1: In file included from /Users/aarivex/americandadhack/Macros.h:1: In file included from /Users/aarivex/americandadhack/ModMenu.h:11: In file included from /Users/aarivex/americandadhack/Hack.h:10: In file included from /Users/aarivex/theos/include/vector:66: In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:66: /Users/aarivex/theos/include/cstring:102:12: error: cannot initialize return object of type 'void *' with an rvalue of type 'const void *' { return memchr(const_cast<const void*>(__p), __c, __n); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Tweak.xm:1: In file included from /Users/aarivex/americandadhack/Macros.h:1: In file included from /Users/aarivex/americandadhack/ModMenu.h:11: In file included from /Users/aarivex/americandadhack/Hack.h:10: In file included from /Users/aarivex/theos/include/vector:66: In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:68: /Users/aarivex/theos/include/cstdlib:143:3: error: declaration conflicts with target of using declaration already in scope abs(long __i) { return labs(__i); } ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:111:44: note: target of using declaration inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);} ^ /Users/aarivex/theos/include/cstdlib:110:11: note: using declaration using ::abs; ^ /Users/aarivex/theos/include/cstdlib:146:3: error: declaration conflicts with target of using declaration already in scope div(long __i, long __j) { return ldiv(__i, __j); } ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:116:42: note: target of using declaration inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) _NOEXCEPT {return ldiv(__x, __y);} ^ /Users/aarivex/theos/include/cstdlib:117:11: note: using declaration using ::div; ^ In file included from Tweak.xm:1: In file included from /Users/aarivex/americandadhack/Macros.h:1: In file included from /Users/aarivex/americandadhack/ModMenu.h:11: In file included from /Users/aarivex/americandadhack/Hack.h:10: In file included from /Users/aarivex/theos/include/vector:66: In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:70: In file included from /Users/aarivex/theos/include/iosfwd:49: In file included from /Users/aarivex/theos/include/bits/postypes.h:46: /Users/aarivex/theos/include/cwchar:212:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *' { return wcschr(const_cast<const wchar_t*>(__p), __c); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/aarivex/theos/include/cwchar:218:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *' { return wcspbrk(const_cast<const wchar_t*>(__s1), __s2); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/aarivex/theos/include/cwchar:224:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *' { return wcsrchr(const_cast<const wchar_t*>(__p), __c); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/aarivex/theos/include/cwchar:230:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *' { return wcsstr(const_cast<const wchar_t*>(__s1), __s2); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/aarivex/theos/include/cwchar:236:12: error: cannot initialize return object of type 'wchar_t *' with an rvalue of type 'const wchar_t *' { return wmemchr(const_cast<const wchar_t*>(__p), __c, __n); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Tweak.xm:1: In file included from /Users/aarivex/americandadhack/Macros.h:1: In file included from /Users/aarivex/americandadhack/ModMenu.h:11: In file included from /Users/aarivex/americandadhack/Hack.h:10: In file included from /Users/aarivex/theos/include/vector:66: In file included from /Users/aarivex/theos/include/bits/stl_algobase.h:71: /Users/aarivex/theos/include/bits/stl_pair.h:96:22: error: no template named 'pair' operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:96:49: error: no template named 'pair' operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:102:21: error: no template named 'pair' operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:102:48: error: no template named 'pair' operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:109:22: error: no template named 'pair' operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:109:49: error: no template named 'pair' operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:115:21: error: no template named 'pair' operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:115:48: error: no template named 'pair' operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:121:22: error: no template named 'pair' operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:121:49: error: no template named 'pair' operator<=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /Users/aarivex/theos/include/bits/stl_pair.h:127:22: error: no template named 'pair' operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[3]: *** [/Users/aarivex/americandadhack/.theos/obj/debug/arm64/Tweak.xm.ca397b12.o] Error 1 make[2]: *** [/Users/aarivex/americandadhack/.theos/obj/debug/arm64/AmericanDadHack.dylib] Error 2 make[1]: *** [internal-library-all_] Error 2 make: *** [AmericanDadHack.all.tweak.variables] Error 2
  8. I'm very new into this game, yet I have some knowledge (programming and basic reverse-engineering). I just dumped some data for a game (American Dad! Apocalypse Soon). It's an Unity game, so I used IL2CPPDump/I'm viewing the classes with dotPeek. There are many methods including get and set methods. Basiclly every method has its own RVA and offset. How would I change the behaviour of a method? Say I want get_XYZValue() to return 1337 (or set_XYZValue(int x) to set x to 1337) and the offset is 0x17EC0809. Would I just override 17EC0809 with 0x539 or maybe 20A78052 (MOV W0, #1337) or is it more than that? I tried the second approach with some functions using iOSGods Live Offset Patcher, yet it sadly didn't affect anything. I appreciate any answer! Thanks.
  9. Thank you!
  10. Heres a dump of the latest game version made with IL2CPPDump. https://drive.google.com/open?id=1Br2-LXiEDMsnLk319WXGLCHy8kv3rCrj Interesting class structures: PremiumState: https://pastebin.com/5CnjR5hz BattleUnit: https://pastebin.com/arFBgkGM (includes methods such as Die() and Revive()) Will update this meantime.
  11. Our school uses an app called Untis (Germany) which manages students lessons, teacher substitutions and attendance controls. It has an premium option which unlocks the features of viewing days that the teacher marked you as missing for, using the widget (3D Touch and a notification centre widget - without premium it just displays the text "Premium needed") and more. This app is my first app I'm getting used to Theos and hooking with and I think I can learn from it. It is a simple app and I debugged it several times with FLEXible, I don't know how much of it is server-sided, as FLEXible reveals that just the school broadcast message and the timetable gets loaded from the server, but there are no requests being made that receives information about the user - even requesting the timetable is not protected with a password. So I started with basic things - changing the teachers name, creating a information text for the lesson and stuff. But my main goal is to get premium working. This is my current Tweak.x: https://pastebin.com/jrDPQRUB Setting isPremium along other properties to true sadly doesn't affect anything, but FLEXible shows me instance variables that I would like to change to true as well, that - I think - could lead me to achieve my goal, but I don't know how to hook into an IVar. I searched for good explanations, but couldn't find one. I hoped that I could get some insight here, which I would be really thankful for. Heres the iTunes link to the app: https://apps.apple.com/de/app/untis-mobile/id926186904 - It's an swift app. I thought of maybe that a server-sided request overrides my hook, could something like this be possible? Or is my hook on isPremium completely wrong? I also tried it with YES and NO. Thanks!
  12. Programming - Web (Laravel, Vue, Bootstrap), Software (C#, NodeJS), Mobile (React Native, Xamarin) - Did/Doing some decent money with it. Starting studying very soon hopefully.
  13. Make sure you have iFunbox installed and configured an SSH-USB tunnel on port 22 and changed the password inside the file (line 36). You need OpenSSH on your device for this.
  14. As said, I already tried it with the MS Hooking with taking a look on the pinned tutorial about it here. It didn't work either. AFAIK, this should look like this: %hook Profile -(bool) isPremium { return true; # or YES? } %end %hook Person -(id) firstName # or -(NSString*) firstName { return @"test"; } %end Just tested it in Flex 3, overriding methods there doesn't do anything either. One thing that is noticable is that when I override a name (there is a shortened name and the full name after you open the table item), the full name is not loaded and the short name will stay there. But it does not show the name I'm overriding it with. Also, I tried hooking into different viewDidLoads, none of them shows my alert. I think Theos will not do anything here. Overriding simple strings or booleans doesn't affect anything in-app. Maybe it is server loaded?
  15. I've set up a theos project and wrote some hooks into the Tweak.x. It compiles fine and gives no errors. But nothing wants to change inside the target app I'm trying to hook into - I'm using both MS Hooking and the method with MSHookFunction and MSFindSymbol. I also have a hook written that should show an alert after a certain view gets loaded, but I won't get an alert either. UIKit is imported inside the Makefile. For example, IDA gives me "___TtC5Untis6Person_firstName_" as function name, so I'm calling MSFindSymbol for that. It's an NSString so I return @"something". The default text still remains inside the app. This is my Tweak.x: @interface InfoCenterViewController : UIViewController @end NSString* firstName() { return @"lol"; } %ctor { MSHookFunction( ((void*) MSFindSymbol(NULL, "___TtC5Untis6Person_firstName_")), (void*) firstName, NULL); } %hook InfoCenterViewController -(void) viewDidLoad { %orig; UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"UntisPro" message: @"yo this should show up bruh" delegate: self cancelButtonTitle: @"lol" otherButtonTitles: nil ]; [alert show]; } %end Is something wrong? Is it even hooking correctly into the app? I've made another project, tried hooking into SBLockScreenViewController and showing the same alert. It works fine there. The bundle identifier is correct, I also tried it without any. Still doesn't do much. Thanks!
  16. Make sure to really use Python 2.7 and not 3 and also calling Python 2 (check your environment variables).
  17. pip should already be installed with the Python installation. If not, be sure to install the latest Python 2.7.9+
  18. You need to install the required dependencies. Run sudo pip install -r requirements.txt --upgrade.
  19. Okay, thank you. I'm new to this and thought I would need the latest SDKs.
  20. I'm using the iOS 12.2 SDK from https://github.com/DavidSkrundz/sdks. Whenever I want to run make do or make clean package, theos fails to compile/link outputting the following error(s): make do > Making all for tweak test… ==> Preprocessing Tweak.x… ==> Compiling Tweak.x (arm64)… ==> Linking tweak test (arm64)… ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libobjc.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libobjc.tbdld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbdld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libc++.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libc++.tbdld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libSystem.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Security.framework/Security.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Security.framework/Security.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Metal.framework/Metal.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Metal.framework/Metal.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CFNetwork.framework/CFNetwork.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CFNetwork.framework/CFNetwork.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//IOSurface.framework/IOSurface.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//IOSurface.framework/IOSurface.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreImage.framework/CoreImage.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreImage.framework/CoreImage.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbdld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd Undefined symbols for architecture arm64: "_objc_getClass", referenced from: __logosLocalInit in Tweak.x.8221c384.o ld: symbol(s) not found for architecture arm64 clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/tweaks/test/.theos/obj/debug/arm64/test.dylib] Error 1 make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/tweaks/test/.theos/obj/debug/arm64/test.dylib] Error 2 make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2 make: *** [/var/theos/makefiles/master/rules.mk:111: test.all.tweak.variables] Error 2 Doesn't matter if I have armv7, armv7s or just arm64 in the ARCHS. It always fails with symbols not being found. Is this the SDKS fault? How can I fix this? Thanks!
  21. Removed it, thanks. But now I'm stuck with this: make package > Making all for tweak UntisPro… ==> Linking tweak UntisPro (arm64)… ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libobjc.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libobjc.tbd ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libc++.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libc++.tbd ld: warning: ignoring file /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/usr/lib/libSystem.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Security.framework/Security.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Security.framework/Security.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Metal.framework/Metal.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//Metal.framework/Metal.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CFNetwork.framework/CFNetwork.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CFNetwork.framework/CFNetwork.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//IOSurface.framework/IOSurface.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//IOSurface.framework/IOSurface.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreImage.framework/CoreImage.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreImage.framework/CoreImage.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbd ld: warning: Auto-Linking supplied '/var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbd', file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (arm64): /var/theos/sdks/iPhoneOS12.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbd Undefined symbols for architecture arm64: "_CFNotificationCenterAddObserver", referenced from: subscribeToLaunchEvent() in Tweak.xm.44da8f9b.o initialize() in Tweak.xm.44da8f9b.o "_CFNotificationCenterGetLocalCenter", referenced from: subscribeToLaunchEvent() in Tweak.xm.44da8f9b.o didFinishLaunching(__CFNotificationCenter*, void*, __CFString const*, void const*, __CFDictionary const*) in Tweak.xm.44da8f9b.o unsubscribeToLaunchEvent() in Tweak.xm.44da8f9b.o initialize() in Tweak.xm.44da8f9b.o "_CFNotificationCenterRemoveObserver", referenced from: didFinishLaunching(__CFNotificationCenter*, void*, __CFString const*, void const*, __CFDictionary const*) in Tweak.xm.44da8f9b.o unsubscribeToLaunchEvent() in Tweak.xm.44da8f9b.o "_OBJC_CLASS_$_NSURL", referenced from: objc-class-ref in Tweak.xm.44da8f9b.o "_OBJC_CLASS_$_UIAlertAction", referenced from: objc-class-ref in Tweak.xm.44da8f9b.o "_OBJC_CLASS_$_UIAlertController", referenced from: objc-class-ref in Tweak.xm.44da8f9b.o "_OBJC_CLASS_$_UIApplication", referenced from: objc-class-ref in Tweak.xm.44da8f9b.o "_UIApplicationDidFinishLaunchingNotification", referenced from: subscribeToLaunchEvent() in Tweak.xm.44da8f9b.o didFinishLaunching(__CFNotificationCenter*, void*, __CFString const*, void const*, __CFDictionary const*) in Tweak.xm.44da8f9b.o unsubscribeToLaunchEvent() in Tweak.xm.44da8f9b.o initialize() in Tweak.xm.44da8f9b.o "__NSConcreteGlobalBlock", referenced from: ___block_literal_global in Tweak.xm.44da8f9b.o ___block_literal_global.19 in Tweak.xm.44da8f9b.o ___block_literal_global.27 in Tweak.xm.44da8f9b.o ___block_literal_global.29 in Tweak.xm.44da8f9b.o "___CFConstantStringClassReference", referenced from: CFString in Tweak.xm.44da8f9b.o CFString in Tweak.xm.44da8f9b.o CFString in Tweak.xm.44da8f9b.o CFString in Tweak.xm.44da8f9b.o CFString in Tweak.xm.44da8f9b.o CFString in Tweak.xm.44da8f9b.o CFString in Tweak.xm.44da8f9b.o ... "___NSDictionary0__", referenced from: ____Z5setupv_block_invoke in Tweak.xm.44da8f9b.o ____Z5setupv_block_invoke_3 in Tweak.xm.44da8f9b.o "__dyld_get_image_header", referenced from: hasASLR() in Tweak.xm.44da8f9b.o calculateAddress(long long) in Tweak.xm.44da8f9b.o "__dyld_get_image_vmaddr_slide", referenced from: get_slide() in Tweak.xm.44da8f9b.o calculateAddress(long long) in Tweak.xm.44da8f9b.o "_mach_task_self_", referenced from: vm_writeData(long long, unsigned int) in Tweak.xm.44da8f9b.o "_objc_getClass", referenced from: _logosLocalInit() in Tweak.xm.44da8f9b.o "_objc_msgSend", referenced from: setup() in Tweak.xm.44da8f9b.o ____Z5setupv_block_invoke in Tweak.xm.44da8f9b.o ____Z5setupv_block_invoke_3 in Tweak.xm.44da8f9b.o "_vm_protect", referenced from: vm_writeData(long long, unsigned int) in Tweak.xm.44da8f9b.o "_vm_write", referenced from: vm_writeData(long long, unsigned int) in Tweak.xm.44da8f9b.o ld: symbol(s) not found for architecture arm64 clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/tweaks/untispro/.theos/obj/arm64/UntisPro.dylib] Error 1 make[2]: *** [/var/theos/makefiles/instance/library.mk:33: /var/root/tweaks/untispro/.theos/obj/arm64/UntisPro.dylib] Error 2 make[1]: *** [/var/theos/makefiles/instance/library.mk:24: internal-library-all_] Error 2 make: *** [/var/theos/makefiles/master/rules.mk:111: UntisPro.all.tweak.variables] Error 2
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines