Jump to content

4 posts in this topic

Recommended Posts

Posted (edited)

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
Posted (edited)

Add:
 

ProjectName_FRAMEWORKS = UIKit CoreGraphics

In the patchers makefile (both makefiles). :)

Also, import UIKit.

 

@@Ianouar3G

Updated by DiDA
Posted (edited)

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
Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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