Jump to content

Recieving an error when compiling my tweak


Go to solution Solved by Chrizk0,

8 posts in this topic

Recommended Posts

Posted

Hello all, as some of you may already know I have begun the process of learning how to 'hack' apps. Anyway I recently started delving into Code Injection and I was just about to compile it when BOOM! a fatal error appeared. I looked into the problem and apparently in my .mm file I have imported a preferences.h file. Although it appears to be missing to the compiler and I can't see to find it either. I used Dida's Code Injection template here from the site could this have anything to do with it? If you need any further information feel free to leave a comment and I'll respond quickly. Thank you for all of those willing to help resolve this issue. By the way this is the only error I receive my code looks to have compiled fine it's just this one error.

Posted (edited)

what error?

what did you put in the files? (Without real code, if you like)

#import "writeData.h"

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.WITEGAMES.haypi.plist"

 

inline bool GetPrefBool(NSString *key)

{

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

%ctor {

if(GetPrefBool(@"kKey"))

{

writeData(0x066F60, 0x0700A0E1);

} else {

}

 

if(GetPrefBool(@"kGems"))

{

writeData(0x066F52, 0x0700A0E1);

} else {

}

 

if(GetPrefBool(@"kLives"))

{

writeData(0x066F1A, 0x0700A0E1);

} else {

}

 

if(GetPrefBool(@"kLives2"))

{

writeData(0x074494, 0x0010A0E3);

} else {

}

}

 

 

I got an error saying I was missing a preferences.h file

Updated by WITEGames
  • Solution
Posted (edited)

Everything is fine but you are missing headers to compile with. Right now you are using the default theos headers.

 

Download this https://www.sendspace.com/file/ev55tv

 

Extract it (Should take a few minutes or less), copy and paste the include directory to /var/theos

 

Now recompile.

Updated by Chrizk0

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

    • Supermarket Tycoon 3D +4 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Supermarket Tycoon 3D By Amobear Game Global
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.supermarket.manager.simulator.game

       

      🤩 Hack Features

      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Tickets -> Will increase instead of decrease.
      -- No Ads
      • 0 replies
    • Supermarket Tycoon 3D +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Supermarket Tycoon 3D By AMOBEAR PTE. LTD
      Bundle ID: com.supermarket.manager.simulator.game
      App Store Link: https://apps.apple.com/us/app/supermarket-tycoon-3d/id6739697316?uo=4

       

      🤩 Hack Features

      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Tickets -> Will increase instead of decrease.
      -- No Ads
      • 1 reply
    • Longleaf Valley +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge Game By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      App Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-game/id1573565989?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      • 34 replies
    • Monster Crest: Idle Survivor +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Monster Crest: Idle Survivor By Huy Bach
      Bundle ID: com.goldentier.TheLastHope
      App Store Link: https://apps.apple.com/us/app/monster-crest-idle-survivor/id6741066532?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Currencies -> Will increase instead of decrease.
      • 4 replies
    • Match Jong - Zen Tile Puzzle +1 Jailed Cheat [ Unlimited Coins ]
      Modded/Hacked App: Match Jong - Zen Tile Puzzle By Sophun Games Ltd
      Bundle ID: com.sophungamesltd.orientile
      iTunes Store Link: https://apps.apple.com/us/app/match-jong-zen-tile-puzzle/id6446582118?uo=4

       
       

      🤩 Hack Features

      - Unlimited Coins -> Earn or spend some.
      • 2 replies
    • Tap King: Idle Clicker (RPG) +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Tap King: Idle Clicker (RPG) By SpellSoft Studio
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=spellsoftstudio.tapking

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Tar -> Will increase instead of decrease.
      - Unlimited Gold -> Will increase instead of decrease.
      • 0 replies
    • Capybara Survivor Idle RPG +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Capybara Survivor Idle RPG By RED MOON TECHNOLOGY
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.capybara.legend.survivor.idle.battle

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 1 reply
    • Backpack Chef +3 Mods [ Damage & Defence ]
      Mod APK Game Name: Backpack Chef By GAME OVEN
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.wizelynco.tkw

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 0 replies
    • Beast Evo: Blade Survivor v1.0.8 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Beast Evo: Blade Survivor By GREENWORMS ENTERTAINMENT COMPANY LIMITED
      Bundle ID: com.greenwormsentertainment.beastevo
      App Store Link: https://apps.apple.com/us/app/beast-evo-blade-survivor/id6757626343?uo=4

      🤩 Hack Features

      - Unlimited Diamonds
      - Unlimited Gems
      - Unlimited Coins
      • 0 replies
    • Beast Evo: Blade Survivor v1.0.8 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Beast Evo: Blade Survivor By GREENWORMS ENTERTAINMENT COMPANY LIMITED
      Bundle ID: com.greenwormsentertainment.beastevo
      App Store Link: https://apps.apple.com/us/app/beast-evo-blade-survivor/id6757626343?uo=4

      🤩 Hack Features

      - Unlimited Diamonds
      - Unlimited Gems
      - Unlimited Coins
      • 0 replies
    • Virtual Families 3 +3 Mods [ Coins + More ]
      Mod APK Game Name: Virtual Families 3 By Last Day of Work, LLC
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ldw.vf3

       

      🤩 Hack Features

      - Unlimited Coins -> Head into Settings and toggle the Contact Support button.
      - Unlimited Food -> Head into Settings and toggle the Contact Support button.
      - Unlimited Pet Food -> Head into Settings and toggle the Contact Support button.
      • 0 replies
    • Idle Bank Tycoon: Money Game +1 Jailed Cheat
      Modded/Hacked App: Idle Bank Tycoon: Money Game By Kolibri Games GmbH
      Bundle ID: com.luckyskeletonstudios.idlebanktycoon
      iTunes Store Link: https://apps.apple.com/us/app/idle-bank-tycoon-money-game/id1645281275?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.


      Hack Features:
      - Freeze Currencies


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Like
      • 223 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