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

    • Raise a Joseon Hunter ( 조선헌터 키우기 ) v1.15.2 +6 Jailed Cheats [ Mega Hack ]
      Modded/Hacked App: 조선헌터 키우기 By GROUP1024 Co., Ltd
      Bundle ID: com.group1024.korea
      App Store Link: https://apps.apple.com/kr/app/%EC%A1%B0%EC%84%A0%ED%97%8C%ED%84%B0-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746847732?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Attack Speed
      - Unlimited MP
      - Gold Multiplier
      - XP Multiplier
        • Agree
        • Winner
        • Like
      • 18 replies
    • Peanuts: Snoopy Town Tale Cheats v4.6.5 +2
      Modded/Hacked App: Peanuts: Snoopy Town Tale By PIXOWL INC.
      Bundle ID: com.activision.peanuts
      App Store Link: https://apps.apple.com/us/app/peanuts-snoopy-town-tale/id1013992870?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Freeze Currencies
      - Free iAP

       

      Non-Jailbroken Hack: https://iosgods.com/topic/95917-peanuts-snoopy-town-tale-v462-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 109 replies
    • One Punch Man: World Sea v1.2.0 +2 Cheats
      Mod APK Game Name: One Punch Man: World By Fedeen Games Limited
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pwrd.opmwsea

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • ONE PUNCH MAN: WORLD EUROPE v1.2.0 +2 Cheats
      Mod APK Game Name: ONE PUNCH MAN: WORLD By A PLUS JAPAN Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.opmw.eu

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download Modded APK







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
      • 0 replies
    • Mech Assemble v1.6.37 Jailed Cheats +5
      Modded/Hacked App: Mech Assemble By ONEMT PTE. LTD.
      Bundle ID: com.ios.mecharogue.online
      App Store Link: https://apps.apple.com/us/app/mech-assemble/id6739125107?uo=4



      🤩 Hack Features

      - High Defense
      - No Reload
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 127 replies
    • Unfolded: Webtoon Stories v1.1.1 +21 Mods [ Debug Menu ]
      Mod APK Game Name: Unfolded: Webtoon Stories
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=org.nanobit.webtoon

       

      🤩 Hack Features

      - Freeze Currencies
      - Debug Menu -> Head into Settings and toggle the Support button.
        • Like
      • 0 replies
    • Match Factory! v1.58.143 +3 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Match Factory! By Peak Games
      Bundle ID: net.peakgames.match
      iTunes Store Link: https://apps.apple.com/gb/app/match-factory/id6449094229?uo=4


      Hack Features:
      - Unlimited Everything -> Will increase instead of decrease. Use coins for energy.
      - Auto Win -> Pick up an item.
      - Unlimited Time -> Will not decrease.
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 72 replies
    • Glow Tales: Merge & Makeover v1.1.1 +100 Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Glow Tales: Merge & Makeover By Paxie Games Oyun ve Yazilim Anonim Sirketi
      Bundle ID: com.paxiegames.glowtales
      App Store Link: https://apps.apple.com/us/app/glow-tales-merge-makeover/id6754087834?uo=4

       


      🤩 Hack Features

      - Debug Menu -> Head into Settings and toggle the Inbox button.
        • Informative
        • Like
      • 6 replies
    • Hellsquad Rrrush! v1.4.0 +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
        • Informative
        • Haha
        • Winner
        • Like
      • 40 replies
    • Merge Studio: Fashion Makeover v4.2.1 +50++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Merge Studio: Fashion Makeover By Paxie Games Oyun ve Yazilim Anonim Sirketi
      Bundle ID: com.paxiegames.mergestudio
      iTunes Store Link: https://apps.apple.com/us/app/merge-studio-fashion-makeover/id1615964753?uo=4


      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Sound button.


      Jailbreak required hack(s): [Mod Menu Hack] Merge Studio: Fashion Makeover v2.3.0 +50++ Cheats [ Debug Menu ] - 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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 98 replies
    • Royal Kingdom v24753 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 180 replies
    • Slime Legion v3.9.0 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Slime Legion By Perfeggs
      Bundle ID: com.hero.may.cry.adventure.game
      iTunes Store Link: https://apps.apple.com/us/app/slime-legion/id1664686966
       

      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.


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Moves Modifier


      Jailbreak required hack(s): https://iosgods.com/topic/173174-slime-legion-v162-3-cheats-damage-defence/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 167 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