Jump to content

Trying to compile tweak


Go to solution Solved by Rook,

11 posts in this topic

Recommended Posts

Posted (edited)

So I'm trying to compile a tweak and I get this error

Tweak.xm:13:13: error: implicit conversion from 'long long' to 'vm_address_t'
      (aka 'unsigned int') changes value from 4301296116 to 6328820
      [-Werror,-Wconstant-conversion]
                writeData(0x1006091F4, 0xBF430191);
1 error generated.

make[3]: *** [/Users/NoHax/battleplans/.theos/obj/debug/armv7/Tweak.xm.38e5c0ff.o] Error 1

make[2]: *** [/Users/NoHax/battleplans/.theos/obj/debug/armv7/Battleplans.dylib] Error 2

make[1]: *** [internal-library-all_] Error 2

make: *** [Battleplans.all.tweak.variables] Error 2

Here's my tweak.xm

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <substrate.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.c4m.battleplans.plist"

inline bool GetPrefBool(NSString *key) {
    return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%ctor {
    if(GetPrefBool(@"ADD")) {
        writeData(0x1006091F4, 0xBF430191);
    } else {
}

}

%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { 
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"Battleplans Cheats" 
                                                  message:@"\nBattleplans Cheats by NoHax for iOSGods.com"
                                                 delegate:self 
                                        cancelButtonTitle:@"Thanks" 
                                        otherButtonTitles:@"Visit Us", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
    NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
    if([button isEqualToString:@"Visit Us"]) {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com/"]];                                                                                
    }
}
%end

 

Updated by NoHax
Posted
11 minutes ago, DiDA said:

You need to use vm_writeData.h for ARM64.

Thanks!

That gets me much further than last time but now I get

Battleplans.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found

#import <Preferences/Preferences.h>

 

Posted
5 minutes ago, NoHax said:

Thanks!

That gets me much further than last time but now I get


Battleplans.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found

#import <Preferences/Preferences.h>

 

That issue usually means you're missing headers. Give that a search on iOSGods. :)

Posted (edited)
1 minute ago, DiDA said:

That issue usually means you're missing headers. Give that a search on iOSGods. :)

Nevermind, my headers are the problem like you said

Updated by NoHax
I'm blind.
Posted

Now my headers are conflicting and I got this

/Users/NoHax/theos/include/QuartzCore/CAValueFunction.h:13:1: error: 

      duplicate interface definition for class 'CAValueFunction'

@interface CAValueFunction : NSObject {

^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h:12:12: note: 

      previous definition is here

@interface CAValueFunction : NSObject <NSCoding>

           ^

In file included from Battleplans.mm:1:

In file included from /Users/NoHax/theos/include/Preferences/Preferences.h:8:

In file included from /Users/NoHax/theos/include/Preferences/Preferences-Structs.h:10:

In file included from /Users/NoHax/theos/include/QuartzCore/QuartzCore2.h:15:

/Users/NoHax/theos/include/QuartzCore/CAValueFunction.h:17:39: error: 

      property has a previous declaration

@property(readonly, assign) NSString* name;

                                      ^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h:21:31: note: 

      property declared here

@property(readonly) NSString *name;

                              ^

Battleplans.mm:17:40: error: 'openURL:' is deprecated: first deprecated in iOS

      10.0 - Please use openURL:options:completionHandler: instead

      [-Werror,-Wdeprecated-declarations]

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"ht...

                                       ^

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:125:1: note: 

      'openURL:' has been explicitly marked deprecated here

- (BOOL)openURL:(NSURL*)url NS_DEPRECATED_IOS(2_0, 10_0, "Please use ope...

^

 

Posted (edited)
On 17/07/2017 at 1:35 AM, Basmal121 said:

Similar to my story with theos..

Did you manage to fix your Theos?

Updated by NoHax
Posted
4 hours ago, NoHax said:

Did you manage to fix your Theo's?

Yes. Made one tweak and broke on the next one. Then lost jailbreak 

Posted
16 minutes ago, Basmal121 said:

Yes. Made one tweak and broke on the next one. Then lost jailbreak 

Do you remember how you fixed it?

So I can fix mine xD

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
  • Our picks

    • Legend of Mushroom v2.0.71 Jailed Cheats +4
      Modded/Hacked App: Legend of Mushroom By JOY MOBILE NETWORK PTE. LTD.
      Bundle ID: com.us.mxdzz.ios
      App Store Link: https://apps.apple.com/us/app/legend-of-mushroom/id6475333787?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Multiply Attack
      - God Mode
      - Fast Attack
      - Fast Skill Cooldown

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/180880-legend-of-mushroom-v2071-jailed-cheats-4/
        • Agree
        • Winner
        • Like
      • 493 replies
    • Cats & Soup : Magic Recipe v0.12.1 Jailed Cheats +1
      Modded/Hacked App: Cats & Soup : Magic Recipe By NEOWIZ Corporation
      Bundle ID: com.hidea.cat.magicrecipe
      App Store Link: https://apps.apple.com/us/app/cats-soup-magic-recipe/id6446347021?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Infinite Currencies

       

      Jailbroken Hack: https://iosgods.com/topic/207756-cats-soup-magic-recipe-cheats-auto-update-1/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/207755-cats-soup-magic-recipe-v0121-jailed-cheats-1/
      • 2 replies
    • Myth Reborn: Merge Master v2.0.7 [ +2 APK MOD ] Currency Max
      Mod APK Game Name: Myth Reborn: Merge Master
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.dobolix.mythreborn.merge.master

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      • 0 replies
    • Viking Hero TD: Roguelike RTS v1.0.4 [ +7 APK MOD ] Currency Max
      Mod APK Game Name: Viking Hero TD: Roguelike RTS
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.SimpleBitStudios.VikingHeroTD&hl=en

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Amber
      - Unlimited Keys +3
      - Unlimited Ascend
      - HP MAX
      - ATK MAX
      - ATK Range
      • 0 replies
    • Pines Peak: Merge Travel Games +6 Jailed Cheats [ Unlimited Cash ]
      Modded/Hacked App: Pines Peak: Merge Travel Games By VIZOR APPS LTD
      Bundle ID: com.vizor-apps.Road-Trip2
      App Store Link: https://apps.apple.com/ph/app/pines-peak-merge-travel-games/id6743472188?uo=4

       


      🤩 Hack Features

      - Freeze Merge Energy
      - Freeze Energy
      - Freeze Cash

      VIP
      - Unlimited Merge Energy -> Spend some then restart the game.
      - Unlimited Energy -> Spend some then restart the game.
      - Unlimited Cash -> Spend some then restart the game.
      • 9 replies
    • MIST: Horror Idle Survival RPG +4 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 24 replies
    • Earth Inc. Tycoon Idle Miner +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earth Inc. Tycoon Idle Miner By Treetop Crew Oy
      Bundle ID: com.TreetopCrew.EarthInc
      iTunes Store Link: https://apps.apple.com/us/app/earth-inc-tycoon-idle-miner/id1582514877?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Jailbreak required hack(s): [Mod Menu Hack] Earth Inc. v2.2.1 +3 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
      • 97 replies
    • Hellsquad Rrrush! +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Hellsquad Rrrush! By Wemade Max Co., Ltd.
      Bundle ID: com.wemademax.projectsc
      App Store Link: https://apps.apple.com/us/app/hellsquad-rrrush/id6737409896?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 49 replies
    • Tiny Reaper: Reborn +4 Jailed Cheats [ God Mode + More ]
      Modded/Hacked App: Tiny Reaper: Reborn By DAERI SOFT
      Bundle ID: com.daerigame.babysasin
      App Store Link: https://apps.apple.com/us/app/tiny-reaper-reborn/id6739761698?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - No Skill Cooldown
      - Dumb Enemies
      • 34 replies
    • dropcult +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: dropcult By SMOKESPOT GAMES, LLC
      Bundle ID: com.SmokeSpotGames.SkreetFigherzGame
      App Store Link: https://apps.apple.com/us/app/dropcult/id1550684098?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 45 replies
    • Rodeo Stampede: Sky Zoo Safari +50++ Mods [ Debug Menu ]
      Mod APK Game Name: Rodeo Stampede: Sky Zoo Safari By Yodo1 Games
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.yodo1.rodeo.safari

       

      🤩 Hack Features

      - Debug Menu -> Head into Settings and toggle the Discord button.

      -> Unlock All Animals, Hats, Decorations
      -> Add/Remove Currencies
      -> PVP Cheats
      -> Become Invincible

      + More!
        • Agree
      • 16 replies
    • Hunt Royale: Action RPG Battle +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Hunt Royale: Action RPG Battle By BoomBit, Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.hunt.royale&hl=en_GB

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 14 replies
×
  • 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