Jump to content

MobileSubstrate - My tweak Error arg1 arg2


Go to solution Solved by Crypto,

13 posts in this topic

Recommended Posts

Posted (edited)

Hello all. I tried to compile tweak like this http://pastebin.com/ZFP6g62e. but I found an error like this

 

Tweak.xm:4:185: error: expected class member or base class name

  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                               ^
Tweak.xm:4:184: error: only constructors take base initializers
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                              ^
Tweak.xm:5:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = TRUE;
^~~~
arg1
Tweak.xm:4:179: note: 'arg1' declared here
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                         ^
Tweak.xm:5:6: error: assigning to 'id' from incompatible type 'int'
arg2 = TRUE;
     ^ ~~~~
Tweak.xm:12:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:19:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:25:172: error: expected class member or base class name
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(id) {
                                                               ^
Tweak.xm:25:171: error: only constructors take base initializers
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(id) {
                                                              ^
Tweak.xm:26:1: error: use of undeclared identifier 'arg2'; did you mean 'arg1'?
arg2 = ;
^~~~
arg1
Tweak.xm:25:166: note: 'arg1' declared here
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(id) {
                                                         ^
Tweak.xm:26:8: error: expected expression
arg2 = ;
       ^
Tweak.xm:27:8: error: expected expression
arg1 = ;
       ^
Tweak.xm:47:1: error: non-void function
      '_logos_method$_ungrouped$BBMCoreAccess$adsEnabled' should return a value
      [-Wreturn-type]
return ;
^
Tweak.xm:53:1: error: non-void function
      '_logos_method$_ungrouped$BBMCoreAccess$getAllAds' should return a value
      [-Wreturn-type]
return ;
^
Tweak.xm:59:1: error: non-void function
      '_logos_method$_ungrouped$BBMEphemeralMetaData$remainingTime' should
      return a value [-Wreturn-type]
return ;
^
14 errors generated.
make[3]: *** [/users/pxcex/Desktop/Tweak/bbm/.theos/obj/debug/armv7/Tweak.xm.2995620b.o] Error 1
make[2]: *** [/users/pxcex/Desktop/Tweak/bbm/.theos/obj/debug/armv7/bbm.dylib] Error 2
make[1]: *** [internal-library-all_] Error 2
make: *** [bbm.all.tweak.variables] Error 2

 

whether there is a solution. Thank you very much.

Updated by pxcex
Posted (edited)

Hello all. I tried to compile tweak like this http://pastebin.com/ZFP6g62e. but I found an error like this http://pastebin.com/J7u0Hp1Q. whether there is a solution. Thank you very much.

first error that I see :
 
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg2 = TRUE;

return %orig;

 

you're returning "arg2" but there's no "arg2" in your method. :wat:

 - Edit -

 

You used FlexConverter didn't you? Read the description next time :p It noticed users that it doesn't work with 2+ arguments. It also doesn't read (long long) and (double)

Updated by Crypto
Posted (edited)

 

first error that I see :
 
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg2 = TRUE;

return %orig;

 

you're returning "arg2" but there's no "arg2" in your method. :wat:

 - Edit -

 

You used FlexConverter didn't you? Read the description next time :p It noticed users that it doesn't work with 2+ arguments. It also doesn't read (long long) and (double)

 

 

Thanks. all problems had been solved, now I discovered this.

 

Tweak.xm:4:185: error: expected class member or base class name

  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                               ^
Tweak.xm:4:184: error: only constructors take base initializers
  ...BBMCoreAccess* _LOGOS_SELF_CONST self, SEL _cmd, id arg1):(bool) {
                                                              ^
Updated by pxcex
Posted

Show me ur tweak xm the updated one

 

Tks. here :

 

#include <substrate.h>

 
%hook BBMCoreAccess
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg1 = FALSE;
return %orig;
}
%end
 
%hook BBMCoreAccessGroup
-(void) sendTypingNotificationForConversationURI:(id)arg1 {
arg1 = NULL;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(void) markEphemeralMessageAsViewed:(id)arg1 {
arg1 = NULL;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(void) markMessagesRead:(id)arg1 withConversationURI:(id)arg2 {
arg2 = NULL;
arg1 = NULL;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(bool) isRateBBMEnabled {
return TRUE;
}
%end
 
%hook BBMCoreAccess
-(void) setRateBBMEnabled:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook BBMCoreAccess
-(id) adsEnabled {
return NULL;
}
%end
 
%hook BBMCoreAccess
-(id) getAllAds {
return NULL;
}
%end
 
%hook BBMEphemeralMetaData
-(double) remainingTime {
return FALSE;
}
%end
 
%hook BBMPingLimitHelper
-(bool) isLimitReached {
return TRUE;
}
%end
 
%hook BBMSystemMessageCell
-(bool) isRead {
return TRUE;
}
%end
 
%hook BBMSystemMessageCell
-(void) setIsRead:(bool)arg1 {
arg1 = TRUE;
return %orig;
}
%end
 
%hook BBMMessage
-(bool) canBeMarkedRead {
return TRUE;
}
%end
 
%hook BBMMessageCell
+(bool) automaticallyNotifiesObserversOfMessage {
return TRUE;
}
%end
 
%hook BBMGenEphemeralMetaData
-(bool) isScreenshot {
return TRUE;
}
%end
Posted

 

first error that I see :
 
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg2 = TRUE;

return %orig;

 

you're returning "arg2" but there's no "arg2" in your method. :wat:

 - Edit -

 

You used FlexConverter didn't you? Read the description next time :p It noticed users that it doesn't work with 2+ arguments. It also doesn't read (long long) and (double)

 

 

if you can fix this?
 
%hook BBMCoreAccess
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg1 = FALSE;
return %orig;
}

 

%end
Posted (edited)

hook BBMCoreAccess

-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool)arg2 {

arg1 = NULL ;

arg2 = FALSE;

return %orig;

}

%end

Updated by NaeeM.Cool
  • Solution
Posted (edited)

 

if you can fix this?
 
%hook BBMCoreAccess
-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool) {
arg1 = FALSE;
return %orig;
}

 

%end

 

%hook BBMCoreAccess

-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool)arg2 {

arg1 = NULL;

arg2 = FALSE;

return %orig;
}
%end
Updated by Crypto
Posted

hook BBMCoreAccess

-(void) sendTypingNotificationForConversationURI:(id)arg1 isTyping:(bool)arg2 {

arg1 = NULL ;

arg2 = FALSE;

return %orig;

}

%end

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

    • Mars Survivor - Loot & Build +7 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Mars Survivor - Loot & Build By Estoty LLC
      Bundle ID: com.space.breaker.game
      iTunes Store Link: https://apps.apple.com/us/app/mars-survivor-loot-build/id6476778963?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.
      - Unlimited Resources -> Earn some.
      - God Mode
      - One-Hit Kill
      - One-Hit w/ Tool
      - No Ads -> Head into Settings and toggle the Discord Support button. Game will crash, re-launch the game.


      Jailbreak required hack(s): [Mod Menu Hack] Mars Survivor - Loot & Build v1.1.5 +7 Cheats [ Unlimited Everything ] - 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/
      • 45 replies
    • Kitty Keep +2 Jailed Cheats [ God Mode ]
      Modded/Hacked App: Kitty Keep™ By Funovus LLC
      Bundle ID: com.funovus.wildcastle2
      iTunes Store Link: https://apps.apple.com/us/app/kitty-keep/id6476017989?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
      - Unlimited Mana -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Kitty Keep v1.1.3 +2 Cheats [ God Mode ] - 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/
      • 41 replies
    • Heroes & Gear? Yoink! +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Heroes & Gear? Yoink! By Highbrow
      Bundle ID: com.highbrow.games.mnf
      App Store Link: https://apps.apple.com/us/app/heroes-gear-yoink/id6745557169?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 26 replies
    • Hunter Assassin 2 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hunter Assassin 2 By RUBY OYUN VE YAZILIM DANISMANLIK SANAYI TICARET ANONIM SIRKETI
      Bundle ID: com.rubygames.hunterassassin2
      iTunes Store Link: https://apps.apple.com/us/app/hunter-assassin-2/id1544743032?uo=4


      Hack Features:
      - Unlimited Coins -> Earn some in a specific way. This could be by levelling up, quitting the game or daily rewards.
      - Unlimited Gems -> Earn some in a specific way. This could be by levelling up, daily rewards or spinning the wheel.
      - Unlimited Energy -> Earn some in a specific way. This could be by levelling up.

      Note  

      - No I can't hack ads. Either buy to disable or use an ad-blocker?
      - In order for these features to work, you must see the value hacked. If the value is not hacked, then it won't work. Examples below.


      Jailbreak required hack(s): [Mod Menu Hack] Hunter Assassin 2 v1.134 +3 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/
      • 16 replies
    • Maker Valley +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Maker Valley By SPACE APE STUDIOS LIMITED
      Bundle ID: com.littleleafgames.makervalley
      iTunes Store Link: https://apps.apple.com/us/app/maker-valley/id6738954961?uo=4

       
       

      Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Moves
      - Auto Win


      Jailbreak required iOS hacks: [Mod Menu Hack] Maker Valley v0.3.0.7597 +3 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 14 replies
    • Ultimate Golf! +1 Jailed Cheat [ Perfect Shot ]
      Modded/Hacked App: Ultimate Golf! By Miniclip.com
      Bundle ID: com.hypgames.ultimategolf
      iTunes Store Link: https://apps.apple.com/us/app/ultimate-golf/id1475163222
       

      Hack Features:
      - Perfect Shot -> Every ball hit will go straight.


      Jailbreak required hack(s): [Mod Menu Hack] Ultimate Golf! v4.4.3 +1 Cheat [ Perfect Shot ] - 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/
      • 228 replies
    • Kitty’s Kitchen Diary +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Kitty’s Kitchen Diary By SuperPlanet corp.
      Bundle ID: com.superplanet.catrecipe
      iTunes Store Link: https://apps.apple.com/us/app/kittys-kitchen-diary/id6496345774?uo=4

       


      🤩 Hack Features

      - Unlimited Currencies -> Head into Settings and toggle the Notifications button.
      - Unlock All -> Head into Settings and toggle the Nightly Notifications button.
      - Freeze Diamonds
      • 18 replies
    • Dungero: Rumble Offline RPG +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Dungero: Rumble Offline RPG By Retrobot s.r.o.
      Bundle ID: com.retrobot.dungero
      iTunes Store Link: https://apps.apple.com/us/app/dungero-rumble-offline-rpg/id1620904103?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn or spend some.
      - Damage Multiplier *Untested*
      - All Zones Unlocked


      Jailbreak required hack(s): [Mod Menu Hack] Dungero: Rumble Offline RPG v1.7.23 +3 Cheats [ Damage + More ] - 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/
      • 2 replies
    • Cross Master: Word Puzzles v1.2 [ +2 APK MOD ] Currency Max
      Mod APK Game Name: Cross Master: Word Puzzles
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=games.kafa.cm

      🤩 Hack Features

      - ADS NO
      - Unlimited Coins / Use & Earn Then Get
      • 1 reply
    • Cross Master: Word Puzzles v1.2 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Cross Master: Word Puzzles By Kafatech Yazilim Limited Sirketi
      Bundle ID: games.kafa.cm
      App Store Link: https://apps.apple.com/us/app/cross-master-word-puzzles/id6763017441?uo=4

      🤩 Hack Features

      - ADS NO
      - Unlimited Coins / Use Then Get
      • 1 reply
    • Cross Master: Word Puzzles v1.2 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Cross Master: Word Puzzles By Kafatech Yazilim Limited Sirketi
      Bundle ID: games.kafa.cm
      App Store Link: https://apps.apple.com/us/app/cross-master-word-puzzles/id6763017441?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

      - ADS NO
      - Unlimited Coins / Use Then Get

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 0 replies
    • Hungry Shark Evolution +9 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Hungry Shark Evolution By Ubisoft Entertainment
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.fgol.HungrySharkEvolution

       

      🤩 Hack Features

      - Coin Modifier
      - Gem Modifier
      - Speed Multiplier
      - Score Multiplier
      - God Mode
      - One-Hit Kill
      - Unlimited Boost
      - No Gravity
      -- No In-Game Ads
      • 0 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