Skip to content
Guest Big Announcement

Hack By HackManager Error undefined symbols for armv7

Featured Replies

add in my Makefile

X_FILES = Tweak.xm HackManager.m Hack.m

 

 

 

 

#import "Hack.h"
#import "HackManager.h"
@class Hack;
@class HackManager;

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.XXXXXXX.Fragger.plist"

#define SCOREHACK 0
#define GRENADESHACK 1
#define SECRETSHACK 2

HackManager *hackmanager = nil;

%hook FraggerAppDelegate
- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12
{
//All Orientations in struct are: landscapeLeft, landscapeRight, portrait, and portraitUpsideDown. They are set to false by default. Set the ones supported in the app to true.
struct AllowedOrientations supportedOrientations = MakeInitialOrientations();
supportedOrientations.landscapeLeft = true;
supportedOrientations.landscapeRight = true;

hackmanager = [[HackManager alloc]initWithDictPath:PLIST_PATH hackerName:@"by bla bla" coordX:10 coordY:20 andOrientation:UIInterfaceOrientationLandscapeRight andSupportedOrientations:supportedOrientations];

[hackmanager addHackWithKey:@"kScore" andName:@"Score" andType:NUMBER];
[hackmanager addHackWithKey:@"kGrenades" andName:@"Grenades" andType:NUMBER];
[hackmanager addHackWithKey:@"kSecret" andName:@"Secret Mode" andType:BOOLEAN];

return %orig;
}
%end

%hook Configuration
- (BOOL)secretMode
{
return [[hackmanager getHackValueAtIndex:SECRETSHACK]boolValue];
}

- (void)setSecretMode:(BOOL)fp8
{
%orig([[hackmanager getHackValueAtIndex:SECRETSHACK]boolValue]);
}

- (BOOL)tweakingPhysics
{
return [[hackmanager getHackValueAtIndex:SECRETSHACK]boolValue];
}

- (void)setTweakingPhysics:(BOOL)fp8
{
%orig([[hackmanager getHackValueAtIndex:SECRETSHACK]boolValue]);
}
%end

%hook LevelLayer
- (int)grenades
{
return [[hackmanager getHackValueAtIndex:GRENADESHACK]intValue];
}

- (void)setGrenades:(int)fp8
{
%orig([[hackmanager getHackValueAtIndex:GRENADESHACK]intValue]);
}
%end

%hook LevelScore
- (int)value
{
return [[hackmanager getHackValueAtIndex:SCOREHACK]intValue];
}

- (void)setValue:(int)fp8
{
%orig([[hackmanager getHackValueAtIndex:SCOREHACK]intValue]);
}
%end

 

 

 

 

 

i get more errors any help confused.gif

login as: root
[email protected]'s password:*******
GM-4:~ root# cd /var/mobile/fraggergm4
GM-4:/var/mobile/fraggergm4 root# make
/var/mobile/fraggergm4/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/fraggergm4/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak FRaGGERGM4...
Linking tweak FRaGGERGM4...
Undefined symbols for architecture armv7:
"_CGAffineTransformMakeRotation", referenced from:
-[HackManager initWithDictPath:hackerName:coordX:coordY:andOrientation:andSupportedOrientations:] in HackManager.m.228bc9a4.o
-[HackManager deviceOrientationDidChange:] in HackManager.m.228bc9a4.o
"_OBJC_CLASS_$_UIAlertView", referenced from:
objc-class-ref in HackManager.m.228bc9a4.o
"_OBJC_CLASS_$_UIButton", referenced from:
objc-class-ref in HackManager.m.228bc9a4.o
"_OBJC_CLASS_$_UIDevice", referenced from:
objc-class-ref in HackManager.m.228bc9a4.o
"_OBJC_CLASS_$_UIWindow", referenced from:
objc-class-ref in HackManager.m.228bc9a4.o
"_UIDeviceOrientationDidChangeNotification", referenced from:
-[HackManager initWithDictPath:hackerName:coordX:coordY:andOrientation:andSupportedOrientations:] in HackManager.m.228bc9a4.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [obj/FRaGGERGM4.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [FRaGGERGM4.all.tweak.variables] Error 2
GM-4:/var/mobile/fraggergm4 root#

 

 

 

 

 

IMG_0437.PNG?dl=1

Updated by Ianouar3G

  • Author

Add:

 

projectname_FRAMEWORKS = UIkit
In the patchers makefile (both makefiles). :)

 

Also, import UIKit.

thx i add "X_FRAMEWORKS = UIkit" But I still some errors

 

 

VYdY6UrB.png

Updated by DiDA

thx i add "X_FRAMEWORKS = UIkit" But I still some errors

I had the same problem and that solved it for me.

 

Take a look at these two threads:

 

http://iosgods.com/topic/3319-error-ld-symbols-not-found-for-architecture-armv7-theos-on-ios-8/

 

http://iosgods.com/topic/4171-need-help-with-voidlink-error-for-my-patcher/

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.