Jump to content

Compiling Error


Go to solution Solved by Rook,

7 posts in this topic

Recommended Posts

Posted

Hey Guys. So I'm trying to compile my first MS hack but i get this error:

Fred-Gs-iPhone:/private/var/mobile/theoshacks/thedrowning root# make package install
/private/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/private/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak TheDrowning...
 Preprocessing Tweak.xm...
 Compiling Tweak.xm...
Tweak.xm:15:70: error: expected ';' after expression
_logos_orig$_ungrouped$UnlimitedCoins$setLotsOCoins$(self, _cmd, fp8) }
                                                                     ^
                                                                     ;
1 error generated.
make[2]: *** [obj/Tweak.xm.34be6fa1.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [TheDrowning.all.tweak.variables] Error 2

I have no idea what is the problem. Please help :)

 

Thank you <3:hug:

Posted

@@Fred22

 

Inside your Tweak.xm, on line 15, you are missing a ";". Simply add it and compile.

Posted

@@Fred22

 

Inside your Tweak.xm, on line 15, you are missing a ";". Simply add it and compile.

 

I don't have line 15.

 

here is my tweak.xm

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8)
}
%end
  • Solution
Posted

 

I don't have line 15.

 

here is my tweak.xm

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8)
}
%end

This is the correct one:

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8);
}
%end

%orig(fp8);

Posted

I don't have line 15.

 

here is my tweak.xm

#define PLIST_PATH @"/var/mobile/Library/Preferences/TheDrowning.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook UnlimitedCoins
-(void) setLotsOCoins:(int)fp8 {
if(GetPrefBool(@"kCoins")) {
%orig(9999999);
}
%orig(fp8) <-----
}
%end

 

what is this ?
Posted

Ok well now another error...

 

:

Frederico-Gracianos-iPhone:/var/mobile/theoshacks/thedrowning root# make package install
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak TheDrowning...
make[2]: Nothing to be done for `internal-library-compile'.
Making all in TheDrowning...
Making all for bundle TheDrowning...
 Copying resource directories into the bundle wrapper...
 Compiling TheDrowning.mm...
TheDrowning.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found
#import <Preferences/Preferences.h>
        ^
1 error generated.
make[3]: *** [obj/TheDrowning.mm.132ba578.o] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [TheDrowning.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

not sure were this preference files should be.

Posted

Ok well now another error...

 

:

Frederico-Gracianos-iPhone:/var/mobile/theoshacks/thedrowning root# make package install
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:43: Targeting iOS 4.0 and higher is not supported with iphone-gcc. Forcing clang.
/var/mobile/theoshacks/thedrowning/theos/makefiles/targets/Darwin-arm64/iphone.mk:53: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak TheDrowning...
make[2]: Nothing to be done for `internal-library-compile'.
Making all in TheDrowning...
Making all for bundle TheDrowning...
 Copying resource directories into the bundle wrapper...
 Compiling TheDrowning.mm...
TheDrowning.mm:1:9: fatal error: 'Preferences/Preferences.h' file not found
#import <Preferences/Preferences.h>
        ^
1 error generated.
make[3]: *** [obj/TheDrowning.mm.132ba578.o] Error 1
make[2]: *** [internal-bundle-all_] Error 2
make[1]: *** [TheDrowning.all.bundle.variables] Error 2
make: *** [internal-all] Error 2

not sure were this preference files should be.

 

Search the forum for "Preferences.h" and you'll get a solution. :)

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 Magic Academy v1.7.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4


      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 0 replies
    • Merge Magic Academy v1.7.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Magic Academy By ZYMobile
      Bundle ID: com.zymobile.magic.merge.ios
      App Store Link: https://apps.apple.com/us/app/merge-magic-academy/id6746467003?uo=4
       

      🤩 Hack Features

      - Gems
      - Energy
      - Stars
      • 0 replies
    • Loot Heroes v1.8.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 117 replies
    • Loot Heroes v1.8.0 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - No Ads

      VIP
      - Unlimited Currencies -> Earn some.
      - Auto Win
      - Battle Pass Unlocked
      • 269 replies
    • Fisherman 2 v1.03.11 [+6 Jailed Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
      • 2 replies
    • Fisherman 2 v1.03.11 [+6 Cheats]
      Modded/Hacked App: Fisherman 2 By Little Star Games Oy
      Bundle ID: com.littlestargames.fm2
      App Store Link: https://apps.apple.com/us/app/fisherman-2/id6446778412?uo=4



      🤩 Hack Features

      - Add Coins (Enable inside main menu and enter game)
      - Add Diamonds (Enable inside main menu and enter game)
      - Catch 50 Fish (Enable inside game)
      - Complete All Task (Enable inside main menu)
      - Update All Task (Enable inside main menu)
      - End Current Round (Enable inside game)
      • 0 replies
    • Tasty Travels: Merge Game v33.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 14 replies
    • Tasty Travels: Merge Game v33.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Tasty Travels: Merge Game By Century Games Pte. Ltd.
      Bundle ID: com.fatmerge.global
      iTunes Store Link: https://apps.apple.com/us/app/tasty-travels-merge-game/id6471045672?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 14 replies
    • Endless Wander - Roguelike RPG v2.4.28 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
      • 15 replies
    • Endless Wander - Roguelike RPG v2.4.28 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
      • 12 replies
    • Zombies Clicker v20.1.8 [+4 Jailed Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4


      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
      • 1 reply
    • Zombies Clicker v20.1.8 [+4 Cheats]
      Modded/Hacked App: Zombies Clicker By EDENAP d.o.o.
      Bundle ID: com.edenap.a3
      App Store Link: https://apps.apple.com/us/app/zombies-clicker/id6746955704?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Prestige
      - Never Die
      - One Hit Kill
      • 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