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

    • Merge Empress KR / 머지여제: 궁중 판타지 스토리 퍼즐 +4 Jailed Cheats
      Modded/Hacked App: 머지여제: 궁중 판타지 스토리 퍼즐 By promotion games inc.
      Bundle ID: com.promotiongames.mergeEmpress
      App Store Link: https://apps.apple.com/kr/app/%EB%A8%B8%EC%A7%80%EC%97%AC%EC%A0%9C-%EA%B6%81%EC%A4%91-%ED%8C%90%ED%83%80%EC%A7%80-%EC%8A%A4%ED%86%A0%EB%A6%AC-%ED%8D%BC%EC%A6%90/id6748289603?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

      - Add Gold
      - Add Ruby
      - Add Energy
      - 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
      • 1 reply
    • Naruto Shippuden Rebirth Online Blazing +3 Jailed Cheats
      Modded/Hacked App: Naruto Shippuden Rebirth Online Blazing
      Bundle ID: dev.blazingonline.gameapp
      App Store Link: https://www.blazingonline.wiki/download

       

      📌 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 Skills

       

      ⬇️ 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
      • 58 replies
    • Naruto Shippuden Rebirth Online Blazing +3 Cheats
      Mod APK Game Name: Naruto Blazing Revival
      Rooted Device: Not Required.
      Google Play Store Link: https://cdn.nbrevival.uk/client/beta/

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Unlimited Skills

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 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.
      • 39 replies
    • Gladiator Mayhem +4 Jailed Cheats
      Modded/Hacked App: Gladiator Mayhem By Lightning Forge Games Pty Ltd
      Bundle ID: com.lightningforgegames.gladiatormayhem
      App Store Link: https://apps.apple.com/us/app/gladiator-mayhem/id6741250117?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
      - No Skills Cooldown
      - 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
      • 2 replies
    • Train Empire Idle Tycoon v1.4.1 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Train Empire - Idle Tycoon By HYPERCELL SIA
      Bundle ID: com.nova.train.empire
      App Store Link: https://apps.apple.com/us/app/train-empire-idle-tycoon/id6818543669?uo=4

      🤩 Hack Features

      - ADS No
      - Add Currency
      - Add Resources
      • 0 replies
    • Train Empire Idle Tycoon v1.4.1 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Train Empire - Idle Tycoon By HYPERCELL SIA
      Bundle ID: com.nova.train.empire
      App Store Link: https://apps.apple.com/us/app/train-empire-idle-tycoon/id6818543669?uo=4

      🤩 Hack Features

      - ADS No
      - Add Currency
      - Add Resources
      • 0 replies
    • Age of Aterra v1.0.3 [ +3 Cheats ] AI Freeze
      Modded/Hacked App: Age of Aterra By Green Bee Games LLC
      Bundle ID: games.greenbee.aterra
      App Store Link: https://apps.apple.com/us/app/age-of-aterra/id6816096429?uo=4

      🤩 Hack Features

      - Never Die
      - Max Damage
      - AI Freeze
      • 0 replies
    • Age of Aterra v1.0.3 [ +3 Jailed ] AI Freeze
      Modded/Hacked App: Age of Aterra By Green Bee Games LLC
      Bundle ID: games.greenbee.aterra
      App Store Link: https://apps.apple.com/us/app/age-of-aterra/id6816096429?uo=4

      🤩 Hack Features

      - Never Die
      - Max Damage
      - AI Freeze
      • 0 replies
    • Evolution: Battle for Utopia v3.7.5 [ +15 Cheats ] Auto Win
      Modded/Hacked App: Evolution: Battle for Utopia By Keystorm Holdings Limited
      Bundle ID: com.my.evolution
      App Store Link: https://apps.apple.com/us/app/evolution-battle-for-utopia/id774652325?uo=4

      🤩 Hack Features

      - Auto Win
      - VIP Active
      - VIP Level Max
      - Freeze Currency
      - Freeze Resources
      - Unlimited Currency
      - Unlimited Resources
      - Battle EXP Drop
      - Rank Points
      - Skill Points
      - Enemies Can't Attack
      - Enemy HP 1
      - Max Damage
      - Ammo Max
      - No Reload
      • 0 replies
    • Evolution: Battle for Utopia v3.7.5 [ +15 Jailed ] Auto Win
      Modded/Hacked App: Evolution: Battle for Utopia By Keystorm Holdings Limited
      Bundle ID: com.my.evolution

      🤩 Hack Features

      - Auto Win
      - VIP Active
      - VIP Level Max
      - Freeze Currency
      - Freeze Resources
      - Unlimited Currency
      - Unlimited Resources
      - Battle EXP Drop
      - Rank Points
      - Skill Points
      - Enemies Can't Attack
      - Enemy HP 1
      - Max Damage
      - Ammo Max
      - No Reload
      • 0 replies
    • 8 Ball Champions v21.1.1 [ +9 Cheats ] AI Freeze
      Modded/Hacked App: 8 Ball Champions By Kazoo Media, Inc.
      Bundle ID: com.kazoo.pool2
      App Store Link: https://apps.apple.com/us/app/8-ball-champions/id1531510980?uo=4

      🤩 Hack Features

      - 🎯 Cue Guideline
      - 💪 Cue Power
      - 🤖 AI Can't Play
      - 🚫 Opponent Can't Play
      - 🚀 Unlimited Boosters
      - ⏱️ Opponent Time 0
      - 🏙️ Unlock All Cities
      - 🎱 Any Ball Counts
      - ✋ Move Any Ball
      • 0 replies
    • 8 Ball Champions v21.1.1 [ +9 Jailed ] AI Freeze
      Modded/Hacked App: 8 Ball Champions By Kazoo Media, Inc.
      Bundle ID: com.kazoo.pool2
      App Store Link: https://apps.apple.com/us/app/8-ball-champions/id1531510980?uo=4

      🤩 Hack Features

      - 🎯 Cue Guideline
      - 💪 Cue Power
      - 🤖 AI Can't Play
      - 🚫 Opponent Can't Play
      - 🚀 Unlimited Boosters
      - ⏱️ Opponent Time 0
      - 🏙️ Unlock All Cities
      - 🎱 Any Ball Counts
      - ✋ Move Any Ball
      • 3 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