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

what error?

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

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
Posted

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.

Thanks :)

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

    • Reign of the Dead v1.0.4 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Reign of the Dead By Burak Bekec
      Bundle ID: com.rocketroostergames.reignofdead
      App Store Link: https://apps.apple.com/us/app/reign-of-the-dead/id6821207235?uo=4

      🤩 Hack Features

      - Max Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Reign of the Dead v1.0.4 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Reign of the Dead By Burak Bekec
      Bundle ID: com.rocketroostergames.reignofdead
      App Store Link: https://apps.apple.com/us/app/reign-of-the-dead/id6821207235?uo=4

      🤩 Hack Features

      - Max Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Time Warriors: The Last Epoch v1.9 [ +13 Cheats ] Currency Max
      Modded/Hacked App: Time Warriors: The Last Epoch By Tickcess LLC
      Bundle ID: com.tickcess.timewarriorsios
      App Store Link: https://apps.apple.com/us/app/time-warriors-the-last-epoch/id6748774481?uo=4

      🤩 Hack Features

      - Max Currency
      - Infinite Energy
      - Never Die
      - Max Damage
      - Weak Enemies
      - Freeze Enemies
      - Open Dev Menu +7
      • 0 replies
    • Time Warriors: The Last Epoch v1.9 [ +13 Jailed ] Currency Max
      Modded/Hacked App: Time Warriors: The Last Epoch By Tickcess LLC
      Bundle ID: com.tickcess.timewarriorsios
      App Store Link: https://apps.apple.com/us/app/time-warriors-the-last-epoch/id6748774481?uo=4

      🤩 Hack Features

      - Max Currency
      - Infinite Energy
      - Never Die
      - Max Damage
      - Weak Enemies
      - Freeze Enemies
      - Open Dev Menu +7
      • 0 replies
    • Flip N Bust: Family Card Game +6 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Flip N Bust: Family Card Game By Airo Puzzle Games
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.airo.flipcards

       

      🤩 Hack Features

      - Play Best Cards -> Every card you draw is the highest number you do not already hold, so it can never bust you and it keeps your score climbing.
      - Bust The Opponents -> Every opponent that hits is dealt a number it already holds, so it busts.
      - Coin Reward Multiplier -> Multiplies the coin reward from winning a match.
      - League Gem Multiplier -> Multiplies the gem amount league reward pays out.
      - Trophy Multiplier -> Multiplies every trophy you win.
      -- No Ads
      • 0 replies
    • Castle Busters +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Castle Busters By Voodoo
      Bundle ID: com.epicoro.castleclashers
      App Store Link: https://apps.apple.com/us/app/castle-busters/id6746328263?uo=4

       

      🤩 Hack Features

      - Unit Damage Multiplier
      - Unit Defence Multiplier
      - Unit God Mode
      - Unlimited Currencies -> Earn or spend some.
      - Unlock All Units -> Tap on the Settings button.*
      - Cheat Menu -> Tap on the Settings button.*

      * - Only enable 1 feature at a time. 
      • 115 replies
    • Castle Busters +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Castle Busters By VOODOO
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.epicoro.castleclashers

       

      🤩 Hack Features

      - Unit Damage Multiplier
      - Unit Defence Multiplier
      - Unit God Mode
      - Unlimited Currencies -> Earn or spend some.
      - Unlock All Units -> Tap on the Settings button.*
      - Cheat Menu -> Tap on the Settings button.*
      -- No Ads

      * - Only enable 1 feature at a time.
      • 29 replies
    • Sunday City: Life Simulator +1 Mod [ Speed Hack ]
      Mod APK Game Name: Sunday City: Life Simulator By KEFIR!
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=adventure.party.real.life

       

      🤩 Hack Features

      - Move Speed Multiplier
      • 0 replies
    • Sunday City: Sim Life +1 Jailed Cheat [ Speed Hack ]
      Modded/Hacked App: Sunday City: Sim Life By AP KEFIR LTD
      Bundle ID: adventure.party.real.life
      App Store Link: https://apps.apple.com/us/app/sunday-city-sim-life/id6450834358?uo=4

       


      🤩 Hack Features

      - Move Speed Multiplier
      • 44 replies
    • Last Isle: Survival +17 Cheats [ Aimbot + Wallhack ]
      Modded/Hacked App: Last Isle: Survival By Chuang Games Entertainment Limited
      Bundle ID: com.chuangg.lastisle.ios
      App Store Link: https://apps.apple.com/us/app/last-isle-survival/id6761525535?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

      - Aimbot
      - Aim Players
      - Aim Animals
      - Aim NPC / Monsters
      - Aim FOV
      - Aim Smoothing
      - Aim Chest (Off = Head)
      - Show Aim FOV Circle
      - Esp Players
      - Esp Animals
      - Esp NPC / Monsters
      - Esp Resources
      - Esp Crates / Collectibles
      - Esp Ground Loot 
      - Draw Boxes 
      - Draw Lines
      - Draw Distances

      Not Responsible For Bans: Use At Own Risk

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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

      - @KyosukeNanbu

       

      📷 Cheat Video/Screenshots

      N/A
      • 2 replies
    • Mushoku Tensei: Chronicle of Echoes TW / 無職轉生 ~到了異世界就拿出真本事~ 迴響編年史  +5 Jailed Cheats
      Modded/Hacked App: 無職轉生 ~到了異世界就拿出真本事~ 迴響編年史 By Cayenne Entertainment Technology Co., Ltd.
      Bundle ID: com.cayenne.mtr
      App Store Link: https://apps.apple.com/tw/app/%E7%84%A1%E8%81%B7%E8%BD%89%E7%94%9F-%E5%88%B0%E4%BA%86%E7%95%B0%E4%B8%96%E7%95%8C%E5%B0%B1%E6%8B%BF%E5%87%BA%E7%9C%9F%E6%9C%AC%E4%BA%8B-%E8%BF%B4%E9%9F%BF%E7%B7%A8%E5%B9%B4%E5%8F%B2/id6791902676?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

      - Damage Multiplier
      - Defense Multiplier
      - Unlimited SP
      - EX Skill Always Ready 
      - Instant Win

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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
      • 0 replies
    • 바르디안: Vardian +5 Jailed Cheats
      Modded/Hacked App: 바르디안: Vardian By REDVEILONE Inc.
      Bundle ID: com.redveilone.vardian
      App Store Link: https://apps.apple.com/kr/app/%EB%B0%94%EB%A5%B4%EB%94%94%EC%95%88-vardian/id6762203850?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

      - Damage Multiplier
      - Defense Multiplier
      - Attack Speed Multiplier
      - Move Speed Multiplier
      - No ADS

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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
      • 61 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