Jump to content

I'm getting error messages while trying to compile patches


Go to solution Solved by Johnkittz,

21 posts in this topic

Recommended Posts

Posted

I'm getting this error while trying to compile tweaks in terminal 

 

 

Tweak.xm:17:75: error: expected class member or base class name
...self, SEL _cmd):(int) {
^
Tweak.xm:17:75: error: expected '{' or ','
Tweak.xm:17:74: error: only constructors take base initializers
...self, SEL _cmd):(int) {
^
Tweak.xm:18:1: error: void function
'_logos_method$_ungrouped$User$setPoints' should not return a
value [-Wreturn-type]
return 999;
^ ~~~
Tweak.xm:29:1: error: void function
'_logos_method$_ungrouped$AdController$setShowCoinAds' should not return a value [-Wreturn-type]
return false;
^ ~~~~~
5 errors generated.
make[2]: *** [obj/Tweak.xm.23543844.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [unlimitedInstaPoints.all.tweak.variables] Error 2

 

 

and here is the code/edit I did. I don't think there's any mistake here

 

 %hook SPJailbreakStatusProvider

+ (BOOL) isJailbroken {
return false;
}
%end
%hook RevMobDeviceInfo
- (BOOL) isJailbroken {
return false;
}
%end
%hook ADCConfiguration
- (BOOL) areAdsDisabled {
return true;
}
%end
%hook User
- (void)setPoints:(int) {
return 999;
}
- (int)points {
return 999;
}
%end
%hook AdController
- (BOOL)showCoinAds {
return false;
}
- (void)setShowCoinAds {
return false;
}
%end
 
 
Posted

 

 %hook SPJailbreakStatusProvider

+ (BOOL) isJailbroken {

return false;

}

%end

%hook RevMobDeviceInfo

- (BOOL) isJailbroken {

return false;

}

%end

%hook ADCConfiguration

- (BOOL) areAdsDisabled {

return true;

}

%end

%hook User

- (void)setPoints:(int)fp6 {

return 999;

}

- (int)points {

return 999;

}

%end

%hook AdController

- (BOOL)showCoinAds {

return false;

}

- (void)setShowCoinAds:(BOOL)fp8 {

return false;

}

%end

Try That ^^^^

You cannot return voids, you can only null them.

 

If it's a void with an argument then follow this: https://iosgods.com/topic/831-tutorial-how-to-hack-using-mobile-substrate-method-hooking/

he was returning a void with a agrument but without the arg and idenfier i fixed the code :)

Posted

You cannot return voids, you can only null them.

 

If it's a void with an argument then follow this: https://iosgods.com/topic/831-tutorial-how-to-hack-using-mobile-substrate-method-hooking/

 

 

Try That ^^^^

he was returning a void with a agrument but without the arg and idenfier i fixed the code :)

 

 

Thanks guys. Before i was getting 5 errors but now it's 2 errors . So how I'm I going to get rid of this two now :)

 

 

...

Tweak.xm:19:1: error: void function

'_logos_method$_ungrouped$User$setPoints should not return a

value [-Wreturn-type]

return 999;

^ ~~~

Tweak.xm:30:1: error: void function

'_logos_method$_ungrouped$AdController$setShowCoinAds should

not return a value [-Wreturn-type]

return false;

^ ~~~~~

2 errors generated.

make[2]: *** [obj/Tweak.xm.23543844.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [unlimitedInstaPoints.all.tweak.variables] Error 2 

Posted

Thanks guys. Before i was getting 5 errors but now it's 2 errors . So how I'm I going to get rid of this two now :)

 

 

...

Tweak.xm:19:1: error: void function

'_logos_method$_ungrouped$User$setPoints should not return a

value [-Wreturn-type]

return 999;

^ ~~~

Tweak.xm:30:1: error: void function

'_logos_method$_ungrouped$AdController$setShowCoinAds should

not return a value [-Wreturn-type]

return false;

^ ~~~~~

2 errors generated.

make[2]: *** [obj/Tweak.xm.23543844.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [unlimitedInstaPoints.all.tweak.variables] Error 2 

 

 %hook SPJailbreakStatusProvider

+(BOOL) isJailbroken {

return false;

}

%end

%hook RevMobDeviceInfo

- (BOOL) isJailbroken {

return false;

}

%end

%hook ADCConfiguration

- (BOOL) areAdsDisabled {

return true;

}

%end

%hook User

- (void)setPoints:(int)fp6 {

fp6 = 999;

}

- (int)points {

return 999;

}

%end

%hook AdController

- (BOOL)showCoinAds {

return false;

}

- (void)setShowCoinAds:(BOOL)fp8 {

fp8 = false;

}

%end

try that

  • Solution
Posted

 

 %hook SPJailbreakStatusProvider

+(BOOL) isJailbroken {

return false;

}

%end

%hook RevMobDeviceInfo

- (BOOL) isJailbroken {

return false;

}

%end

%hook ADCConfiguration

- (BOOL) areAdsDisabled {

return true;

}

%end

%hook User

- (void)setPoints:(int)fp6 {

%orig(999);

}

- (int)points {

return 999;

}

%end

%hook AdController

- (BOOL)showCoinAds {

return false;

}

- (void)setShowCoinAds:(BOOL)fp8 {

%orig(FALSE);

}

%end

Another thing to try :)

Posted

Another thing to try :)

 

It gave me this

 

 

clang: error: unable to execute command: Bus error: 10

clang: error: linker command failed due to signal (use -v to see invocation)

make[2]: *** [obj/UnlimitedInstaPoints.dylib.64873355.unsigned] Error 254

make[1]: *** [internal-library-all_] Error 2

make: *** [unlimitedInstaPoints.all.tweak.variables] Error 2 

Posted

It gave me this

 

 

clang: error: unable to execute command: Bus error: 10

clang: error: linker command failed due to signal (use -v to see invocation)

make[2]: *** [obj/UnlimitedInstaPoints.dylib.64873355.unsigned] Error 254

make[1]: *** [internal-library-all_] Error 2

make: *** [unlimitedInstaPoints.all.tweak.variables] Error 2 

you need to sign stuff now here's a tut: https://iosgods.com/topic/18581-how-to-get-theos-working-on-ios-9-32-bit-only/

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

    • Subway Surfers v3.57.1 +8 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Subway Surfers by SYBO Games
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.kiloo.subwaysurf

       

      🤩 Hack Features

      - Currency Modifier -> Earn some.
      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble

      Will add more soon.
      • 0 replies
    • Dragonbound Knight v1.0 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Dragonbound Knight By Kuo Hsiung Chiu
      Bundle ID: com.kunio.dragonboundknight
      App Store Link: https://apps.apple.com/us/app/dragonbound-knight/id6757808912?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      • 0 replies
    • Dragonbound Knight v1.0 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Dragonbound Knight By Kuo Hsiung Chiu
      Bundle ID: com.kunio.dragonboundknight
      App Store Link: https://apps.apple.com/us/app/dragonbound-knight/id6757808912?uo=4
      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      • 0 replies
    • Glow Tales: Merge & Makeover v1.2.0 +100 Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Glow Tales: Merge & Makeover By Paxie Games Oyun ve Yazilim Anonim Sirketi
      Bundle ID: com.paxiegames.glowtales
      App Store Link: https://apps.apple.com/us/app/glow-tales-merge-makeover/id6754087834?uo=4

       


      🤩 Hack Features

      - Debug Menu -> Head into Settings and toggle the Inbox button.
      • 9 replies
    • Pickaxe King Island v402 +4 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Pickaxe King Island By ROGUE UNION GAMES
      Bundle ID: com.rogueuniongames.pickaxekingisland
      App Store Link: https://apps.apple.com/us/app/pickaxe-king-island/id6738040300?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - Unlimited Everything -> Will increase instead of decrease.
      - Free Shopping
      • 19 replies
    • Subway Surfers City v1.29.2 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Subway Surfers City By Sybo Games ApS
      Bundle ID: com.sybogames.subway.surfers.game
      iTunes Store Link: https://apps.apple.com/ca/app/subway-surfers-city/id6504188939?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Keys -> Earn or spend some.
      - Unlimited Revives - Earn or spend some.
      - Unlimited Tokens -> Earn or spend some.
      - All Boards Unlocked
      - All Surfers Unlocked
      - Max Level -> Earn some XP.
      - God Mode
      - Unlimited Score
      - Unlimited Jumps


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers City v1.13.2 +7 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 240 replies
    • Darkest Hero! v0.1.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Darkest Hero! By MINIDRAGON LTD
      Bundle ID: com.minidragon.randomdungeon
      App Store Link: https://apps.apple.com/us/app/darkest-hero/id6746927122?uo=4

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
      • 26 replies
    • Darkest Hero! v0.1.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Darkest Hero! By MINIDRAGON LTD
      Bundle ID: com.minidragon.randomdungeon
      App Store Link: https://apps.apple.com/us/app/darkest-hero/id6746927122?uo=4

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
        • Winner
      • 22 replies
    • Fairyland - Merge & Match v2.2.1 [ +4 Cheats ] Auto Win
      Modded/Hacked App: Fairyland - Merge & Match By 程程 姚
      Bundle ID: com.mergematch.fairyland
      App Store Link: https://apps.apple.com/us/app/fairyland-merge-match/id6740663230?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Gems
      - Coins
      - Moves 99
      • 19 replies
    • Fairyland - Merge & Match v2.2.1 [ +4 Jailed ] Auto Win
      Modded/Hacked App: Fairyland - Merge & Match By 程程 姚
      Bundle ID: com.mergematch.fairyland
      App Store Link: https://apps.apple.com/us/app/fairyland-merge-match/id6740663230?uo=4


      🤩 Hack Features

      - Auto Win
      - Gems
      - Coins
      - Moves 99
      • 23 replies
    • Cat Crunch - Match 3 Games v2.66 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Cat Crunch - Match 3 Games By Y factory
      Bundle ID: com.yfactorysoft.CatCrunch
      App Store Link: https://apps.apple.com/us/app/cat-crunch-match-3-games/id6471232053?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Booster.
      • 7 replies
    • Cat Crunch - Match 3 Games v2.66 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Cat Crunch - Match 3 Games By Y factory
      Bundle ID: com.yfactorysoft.CatCrunch
      App Store Link: https://apps.apple.com/us/app/cat-crunch-match-3-games/id6471232053?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Booster
      • 5 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