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

    • Andy Volcano: Tile Match Story v1.5.14 +7 [OP Cheats]
      Modded/Hacked App: Andy Volcano: Tile Match Story By SayGames LTD
      Bundle ID: com.playstrom.tile.match
      iTunes Store Link: https://apps.apple.com/us/app/andy-volcano-tile-match-story/id1639080259?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Infinite Health
      - Infinite Coins
      - Infinite Stars
      - Infinite Gloves
      - Infinite Boomerangs
      - Infinite Propellers
      - Infinite Bombs


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 22 replies
    • Andy Volcano: Tile Match Story v1.5.14 +7 [OP Cheats]
      Modded/Hacked App: Andy Volcano: Tile Match Story By SayGames LTD
      Bundle ID: com.playstrom.tile.match
      iTunes Store Link: https://apps.apple.com/us/app/andy-volcano-tile-match-story/id1639080259?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:
      - Infinite Health
      - Infinite Coins
      - Infinite Stars
      - Infinite Gloves
      - Infinite Boomerangs
      - Infinite Propellers
      - Infinite Bombs


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 20 replies
    • Gear Clicker v8.7.9 +3 [Free Upgrades]
      Modded/Hacked App: Gear Clicker By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.kb.gearclicker
      iTunes Store Link: https://apps.apple.com/us/app/gear-clicker/id6444687282?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:
      - No Popup Ads
      - Free Upgrades
      - Free Gears


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 67 replies
    • Gear Clicker v8.7.9 +3 [Free Upgrades]
      Modded/Hacked App: Gear Clicker By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.kb.gearclicker
      iTunes Store Link: https://apps.apple.com/us/app/gear-clicker/id6444687282?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - No Popup Ads
      - Free Upgrades
      - Free Gears


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 74 replies
    • Idle Brick Breaker v2.1.74 +3 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Idle Brick Breaker - Breakout By Tech Tree Games LLC
      Bundle ID: com.TechTreeGames.IdleBrickBreaker
      iTunes Store Link: https://apps.apple.com/us/app/idle-brick-breaker-breakout/id1522164283?uo=4


      Hack Features:
      - Infinite Cash
      - Infinite Gems
      - No reset on Prestige


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 50 replies
    • Idle Brick Breaker v2.1.74 +3 [Currency Hack]
      Modded/Hacked App: Idle Brick Breaker - Breakout By Tech Tree Games LLC
      Bundle ID: com.TechTreeGames.IdleBrickBreaker
      iTunes Store Link: https://apps.apple.com/us/app/idle-brick-breaker-breakout/id1522164283?uo=4


      Hack Features:
      - Infinite Cash
      - Infinite Gems
      - No reset on Prestige


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 40 replies
    • Idle Mine Dig: Drill & Collect v1.23.42 +7 [Currency Hack]
      Modded/Hacked App: Idle Mine Dig: Drill & Collect By APPS TEKNOLOJI ANONIM SIRKETI
      Bundle ID: tr.com.apps.drill.and.collect
      iTunes Store Link: https://apps.apple.com/us/app/idle-mine-dig-drill-collect/id1642304873?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

      - No Ads
      - VIP Active
      - Freeze Currency
      - Freeze Pills
      - Freeze Tickets
      - Freeze Tokens
      - All Costumes Unlocked

       

      ⬇️ iOS Hack Download Link


      • 18 replies
    • Idle Mine Dig: Drill & Collect v1.23.42 +7 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Idle Mine Dig: Drill & Collect By APPS TEKNOLOJI ANONIM SIRKETI
      Bundle ID: tr.com.apps.drill.and.collect
      iTunes Store Link: https://apps.apple.com/us/app/idle-mine-dig-drill-collect/id1642304873?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

      - No Ads
      - VIP Active
      - Freeze Currency
      - Freeze Pills
      - Freeze Tickets
      - Freeze Tokens
      - All Costumes Unlocked

       

      ⬇️ iOS Hack Download IPA Link


      • 19 replies
    • Pocket Land! v0.118.1 +3 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Pocket Land! By GRAND-ATTIC LIMITED
      Bundle ID: gs.hadi.pocketisland
      iTunes Store Link: https://apps.apple.com/us/app/pocket-land/id6446137216?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:
      - Freeze Currency
      - Freeze Resources


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 82 replies
    • Pocket Land! v0.118.1 +3 [Currency Hack]
      Modded/Hacked App: Pocket Land! By GRAND-ATTIC LIMITED
      Bundle ID: gs.hadi.pocketisland
      iTunes Store Link: https://apps.apple.com/us/app/pocket-land/id6446137216?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Freeze Currency
      - Freeze Resources
      - Upgrade without Resources (Dont Abuse)


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 45 replies
    • Medieval Merge v1.98.0 [Currency/SRDebug 99+ Options]
      Modded/Hacked App: Medieval Merge: Epic RPG Games By Pixodust Aplicativos LTDA
      Bundle ID: com.pixodust.games.free.rpg.medieval.merge.puzzle.empire
      iTunes Store Link: https://apps.apple.com/us/app/medieval-merge-epic-rpg-games/id1553126598?uo=4

      Hack Features:
      - SRDebugger 99+ Toggles
      Open IGMM first and enable "Open SRDebug" then open settings in game for the UI to popup  


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 185 replies
    • Project Clean Earth v1.66 +8 Jailed Cheats [Currency Hack]
      Modded/Hacked App: Project Clean Earth By 1N1
      Bundle ID: com.onenone.ecp
      iTunes Store Link: https://apps.apple.com/us/app/project-clean-earth/id1604696394?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:
      - God Mode
      - Infinite Batteries
      - Infinite Chips
      - Infinite Gems


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      • 45 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