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

    • Empire Heroes: Strategy Game v1.0.1 [+4 Jailed Cheats]
      Modded/Hacked App: Empire Heroes: Strategy Game By VIETNAM TAAP TECHNOLOGY COMPANY LIMITED
      Bundle ID: com.nature.empireheroes
      App Store Link: https://apps.apple.com/us/app/empire-heroes-strategy-game/id6742527014?uo=4


      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Gems
      - Free IAP
      - Never Die
      • 1 reply
    • Empire Heroes: Strategy Game v1.0.1 [+4 Cheats]
      Modded/Hacked App: Empire Heroes: Strategy Game By VIETNAM TAAP TECHNOLOGY COMPANY LIMITED
      Bundle ID: com.nature.empireheroes
      App Store Link: https://apps.apple.com/us/app/empire-heroes-strategy-game/id6742527014?uo=4


       

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Gems
      - Free IAP
      - Never Die
      • 0 replies
    • Matching Story v1.42.04 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 35 replies
    • Matching Story v1.42.04 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Matching Story By VERTEX GAMES PTE. LTD.
      Bundle ID: matching.story
      iTunes Store Link: https://apps.apple.com/ph/app/matching-story/id1558803930?uo=4

       
      🤩 Hack Features

      - Auto Win

      - Coins

      - Diamonds [ Win Match Linked With Moves ]

      - Lives

      - Booster

      - Moves
        • Informative
        • Agree
        • Haha
        • Like
      • 45 replies
    • Shadow Fight 4: Arena Cheat v1.9.50 +4
      Modded/Hacked App: Shadow Fight 4: Arena By Nekki Limited
      Bundle ID: com.nekki.shadowfightarena
      iTunes Store Link: https://apps.apple.com/us/app/shadow-fight-4-arena/id1479050948?uo=4


      Hack Features:
      - Freeze Enemies

      ViP Features:
      - Multiply Attack
      - Multiply Defense
      - God Mode
       

      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/136035-shadow-fight-4-arena-v1920-jailed-cheat-4/


      iOS Hack Download Link: https://iosgods.com/topic/136014-shadow-fight-4-arena-cheat-v1920-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 385 replies
    • [ ArKnights TW ] 明日方舟 v28.4.01 - [ x Player Damage & More ]
      Modded/Hacked App: 明日方舟 By GRYPH FRONTIER PTE. LTD.
      Bundle ID: tw.txwy.ios.arknights
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F/id1490985322?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - x Player Damage - x1 - 1000
      - x Player Defense - x1 - 1000
      - x Player Attack Speed - x1 - 10
      - Frozen Enemies
      - Instant - Kill
      - Instant - Win
      - Unlimited Skills
      - No Deploy Cost

       

      Non-Jailbroken Hack: https://iosgods.com/topic/129722-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/129583-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-x-player-damage-more/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 460 replies
    • Sneaky Sasquatch Cheats v2.0.6 +3
      Modded/Hacked App: Sneaky Sasquatch By RAC7 Games
      Bundle ID: com.rac7.SneakySasquatch
      iTunes Store Link: https://apps.apple.com/us/app/sneaky-sasquatch/id1098342019?uo=4


      Hack Features:
      - Infinite Gold
      - Unlock All
      - No Hunger


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148262-sneaky-sasquatch-v172-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/148261-sneaky-sasquatch-cheats-v172-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 183 replies
    • Mini Militia - Doodle Army 2 Cheats v5.6.0 +8 [ God Mode & More ]
      Modded/Hacked App: Mini Militia - Doodle Army 2 By Miniclip SA
      Bundle ID: com.chadtowns.da2
      App Store Link: https://apps.apple.com/us/app/mini-militia-doodle-army-2/id405885221?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - God Mode
      - One Hit Kill
      - Infinite Ammo
      - No Reload
      - Infinite Grenade
      - Infinite Jetpack Boost
      - Friendly Fire Enabled
      - Premium

       

      Free Non-Jailbroken Hack: https://iosgods.com/topic/178790-mini-militia-doodle-army-2-v560-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/96342-mini-militia-doodle-army-2-cheats-v560-8-god-mode-more/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 602 replies
    • Tower of God: NEW WORLD Cheats v2.12.00 +4
      Modded/Hacked App: Tower of God: NEW WORLD By Netmarble Corporation
      Bundle ID: com.netmarble.tog
      iTunes Store Link: https://apps.apple.com/us/app/tower-of-god-new-world/id1599435437?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Critical
      - Skip Battle Intro


      Non-Jailbroken & No Jailbreak required hack(s): 
       

      iOS Hack Download Link: https://iosgods.com/topic/186202-tower-of-god-new-world-cheats-v20101-4/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 96 replies
    • 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
        • Like
      • 1 reply
    • 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
      • 1 reply
    • 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
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 118 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