Jump to content

Trying to compile tweak


NoHax

11 posts in this topic

Recommended Posts

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

 

Link to comment
https://iosgods.com/topic/53788-trying-to-compile-tweak/
Share on other sites

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>

 

Link to comment
https://iosgods.com/topic/53788-trying-to-compile-tweak/#findComment-1667021
Share on other sites

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. :)

Link to comment
https://iosgods.com/topic/53788-trying-to-compile-tweak/#findComment-1667026
Share on other sites

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...

^

 

Link to comment
https://iosgods.com/topic/53788-trying-to-compile-tweak/#findComment-1667047
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • [ Re:Dive KR ] 프린세스 커넥트! Re:Dive Cheats v10.1.10 +3
      Modded/Hacked App: 프린세스 커넥트! Re:Dive By Kakao Games Corp.
      Bundle ID: com.kakaogames.pcr
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-re-dive/id1452123050?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skill


      iOS Hack Download Link: https://iosgods.com/topic/148422-%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-redive-cheats-v403-3/
      • 100 replies
    • BitLife - Life Simulator Cheats v3.17.10 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
      • 3,463 replies
    • DomiNations v12.1450.1450 +40++ Cheats [ Exclusive ]
      Modded/Hacked App: DomiNations by NEXON M Inc.
      Bundle ID: com.nexonm.dominations
      iTunes Store Link: https://itunes.apple.com/us/app/dominations/id922558758


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizens Cost
      - Place Multiple of Same Building
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train Cooldown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      This hack is an In-Game Mod Menu (iGMM). In order to activate the Mod Menu, tap on the iOSGods button found inside the app.
      • 4,951 replies
    • Real Racing 3 Cheats v13.2.1 +4
      Modded/Hacked App: Real Racing 3 By Electronic Arts Inc.
      Bundle ID: com.ea.realracing3.inc
      iTunes Store Link: https://apps.apple.com/us/app/real-racing-3/id556164008?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

      - Free Store
      - Freeze M$
      - Freeze R$
      - Freeze Gold

      Non-Jailbroken Hack: https://iosgods.com/topic/185163-real-racing-3-v1317-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147926-real-racing-3-cheats-v1318-4/
      • 981 replies
    • Harry Potter: Puzzles & Spells v90.0.290 +1 Jailed Cheat [ Unlimited Moves ]
      Modded/Hacked App: Harry Potter: Puzzles & Spells By Zynga Inc.
      Bundle ID: com.zynga.pottermatch
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-puzzles-spells/id1434505322?uo=4


      Hack Features:
      - Unlimited Moves -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Harry Potter: Puzzles & Spells v85.0.271 +1 Cheat [ Unlimited Moves ] - 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/
      • 32 replies
    • Harry Potter: Puzzles & Spells v90.0.290 +1 Cheat [ Unlimited Moves ]
      Modded/Hacked App: Harry Potter: Puzzles & Spells By Zynga Inc.
      Bundle ID: com.zynga.pottermatch
      iTunes Store Link: https://apps.apple.com/us/app/harry-potter-puzzles-spells/id1434505322?uo=4


      Hack Features:
      - Unlimited Moves -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Harry Potter: Puzzles & Spells v85.0.271 +1 Jailed Cheat [ Unlimited Moves ] - Free Non-Jailbroken IPA 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/
      • 19 replies
    • DREDGE v1.0.6 +3 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: DREDGE By Black Salt Games Limited
      Bundle ID: com.blacksaltgames.dredge
      iTunes Store Link: https://apps.apple.com/us/app/dredge/id6526463862?uo=4

       
       

      🤩 Hack Features

      - Full Game & All DLC Unlocked
      - Sell Value Multiplier
      - All Cabin Items Unlocked -> Head into Settings > Controls and toggle the Reset All Controls button.
      • 4 replies
    • DREDGE v1.0.6 +3 Cheats [ Unlocked ]
      Modded/Hacked App: DREDGE By Black Salt Games Limited
      Bundle ID: com.blacksaltgames.dredge
      iTunes Store Link: https://apps.apple.com/us/app/dredge/id6526463862?uo=4

       
       

      🤩 Hack Features

      - Full Game & All DLC Unlocked
      - Sell Value Multiplier
      - All Cabin Items Unlocked -> Head into Settings > Controls and toggle the Reset All Controls button.
      • 1 reply
    • Good Coffee, Great Coffee v1.0 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      • 0 replies
    • Good Coffee, Great Coffee v1.0 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      • 7 replies
    • Modded/Hacked App: Farming Harvest By IVYMOBI LIMITED
      Bundle ID: com.merge.farmharvest.ios
      iTunes Store Link: https://apps.apple.com/us/app/farming-harvest/id6446156138?uo=4


      🤩 Hack Features

      - Cash
      - Coins
      - LvL
      - Exp

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack
      • 1 reply
    • Farming Harvest v2.1.7 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Farming Harvest By IVYMOBI LIMITED
      Bundle ID: com.merge.farmharvest.ios
      iTunes Store Link: https://apps.apple.com/us/app/farming-harvest/id6446156138?uo=4


      🤩 Hack Features

      - Cash
      - Coins
      - LvL
      - Exp

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 2 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