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

    • Tank Busters: Cannon Battle +11 Mods [ Silent Aim, Damage & Defence ]
      Mod APK Game Name: Tank Busters: Cannon Battle By SayGames Ltd
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.tank.busters

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Freeze Fuel
      - Silent Aim
      - Unlimited Currencies -> Will increase instead of decrease.
      -- No Ads
      • 1 reply
    • Dragon Invasion: Idle Shooter +6 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Dragon Invasion: Idle Shooter By Deviloper Limited
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.deviloper.dragon.invasion.idle.rpg

       

      🤩 Hack Features

      - Damage Multiplier
      - Attack Speed Multiplier
      - Move Speed Multiplier
      - Kill All Enemies
      - Unlimited Currencies -> Will increase instead of decrease.
      -- No Ads
      • 1 reply
    • Smithing Master v8.0 [ +2 Cheats ] Never Die
      Modded/Hacked App: Smithing Master By 伟 王
      Bundle ID: com.droidhang.slot.ios.official
      App Store Link: https://apps.apple.com/us/app/smithing-master/id6449953864?uo=4

      🤩 Hack Features

      - Never Die
      - Enemy Damage
      • 0 replies
    • Smithing Master v8.0 [ +2 Jailed ] Never Die
      Modded/Hacked App: Smithing Master By 伟 王
      Bundle ID: com.droidhang.slot.ios.official
      App Store Link: https://apps.apple.com/us/app/smithing-master/id6449953864?uo=4
       

      🤩 Hack Features

      - Never Die
      - Enemy Damage
      • 4 replies
    • 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
      • 64 replies
    • Idle Eleven Soccer Tycoon v1.62.2 [ +3 Cheats ] Currency Freeze
      Modded/Hacked App: Idle Eleven - Soccer Tycoon By Gaminho
      Bundle ID: com.gaminho.idleelevenfootball
      App Store Link: https://apps.apple.com/us/app/idle-eleven-soccer-tycoon/id1458335828?uo=4

      🤩 Hack Features

      - ViP Active
      - Ads No
      - Currency Freeze
      • 0 replies
    • Idle Eleven Soccer Tycoon v1.62.2 [ +3 Jailed ] Currency Freeze
      Modded/Hacked App: Idle Eleven - Soccer Tycoon By Gaminho
      Bundle ID: com.gaminho.idleelevenfootball
      App Store Link: https://apps.apple.com/us/app/idle-eleven-soccer-tycoon/id1458335828?uo=4

      🤩 Hack Features

      - ViP Active
      - Ads No
      - Currency Freeze
      • 2 replies
    • Raising a Martial Arts Girl: Revive KR / 무림소녀 키우기: 리바이브 +7 Jailed Cheats
      Modded/Hacked App: 무림소녀 키우기: 리바이브 By Game2Gather Corporation
      Bundle ID: com.game2gather.mgr
      App Store Link: https://apps.apple.com/kr/app/%EB%AC%B4%EB%A6%BC%EC%86%8C%EB%85%80-%ED%82%A4%EC%9A%B0%EA%B8%B0-%EB%A6%AC%EB%B0%94%EC%9D%B4%EB%B8%8C/id6807325506?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
      - Unlock All Content 
      - Game 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
      • 3 replies
    • DRAGON QUEST Smash/Grow +3 Jailed Cheats
      Modded/Hacked App: DRAGON QUEST Smash/Grow By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.dqsgw
      App Store Link: https://apps.apple.com/us/app/dragon-quest-smash-grow/id6747737418?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

       

      ⬇️ 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
      • 164 replies
    • Reaper Forge: Idle Loot RPG v1.0.1 [ +2 Cheats ] Never Die
      Modded/Hacked App: Reaper Forge: Idle Loot RPG By Mamboo Entertainment ME FZ LLC
      Bundle ID: com.reaper.forge
      App Store Link: https://apps.apple.com/us/app/reaper-forge-idle-loot-rpg/id6820433624?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      • 0 replies
    • Reaper Forge: Idle Loot RPG v1.0.1 [ +2 Jailed ] Never Die
      Modded/Hacked App: Reaper Forge: Idle Loot RPG By Mamboo Entertainment ME FZ LLC
      Bundle ID: com.reaper.forge
      App Store Link: https://apps.apple.com/us/app/reaper-forge-idle-loot-rpg/id6820433624?uo=4
      🤩 Hack Features

      - Never Die
      - Damage Max
      • 0 replies
    • Dragon Rise: Korean Farming RPG KR / 드래곤 라이즈: 국산 파밍 RPG +3 Jailed Cheats
      Modded/Hacked App: 드래곤 라이즈: 국산 파밍 RPG By STORMRISE Inc.
      Bundle ID: com.stormrise.dragonrise
      App Store Link: https://apps.apple.com/kr/app/%EB%93%9C%EB%9E%98%EA%B3%A4-%EB%9D%BC%EC%9D%B4%EC%A6%88-%EA%B5%AD%EC%82%B0-%ED%8C%8C%EB%B0%8D-rpg/id6761347382?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 And Move Speed Multiplier

       

      ⬇️ 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
      • 13 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